Masks rely on more individual operators’ behaviors than vaccines do for their effectiveness to be as well seen. Mainly because vaccines drastically cut down (or did before variants) on one odds of getting infected whether exposed or not. Even now, vaxxed and boosted is almost as effective at infection prevention against Omicron as doubly vaxxed was against prior variants.

That’s the simplest explanation.