"Virus in the area" is not binary, on or off. It's always about rates and doses.
Everyone is not infected instantly.
Germany provides a useful testbed for the impact of mask usage, because the mask mandates have been decided on local regional levels (federal state or city) at different times. From these different times of mask mandates and different progression of epidemic in the areas that are otherwise comparable, we can see that mask usage has a clear impact.
As said, it doesn't stop the epidemic alone, but it helps to contain it. To beat it, we need immunity through vaccines.
https://www.pnas.org/content/117/51/32293