The efficacy of the vaccine indicates how well the vaccine has taught the body to make antibodies for the virus.
Thus, those vaccinated have a better chance of fighting the infection. That is why there are higher survival rates among those infected but vaccinated.
Since even vaccinated people can be infected, and since infection has a higher spread via inhalation and exhalation, wearing a mask keeps the virus out to a high extent, and helps keep the virus in as well (preventing the virus from spreading around via the infected person's exhalation).