We need to get to this point:
(number of people vaccinated) * (vaccine effectiveness) > (herd immunity threshold)
At this point, the R0 drops below 1 and the pandemic dies out by itself.
However, if everyone keeps wearing masks, it looks more like this:
(number of people vaccinated) * (vaccine effectiveness) + (mask effectiveness) * (number of people vaccinated) * (1 - vaccine effectiveness) > 1
This makes it easier to get R0 below 1 with fewer societal restrictions. Given that it's trivial for most people to wear masks, this seems like an obvious choice.