Brownian Motion, like Einstein explained.
Even in a colander, it will stop some objects smaller than the holes.
ny times has an interesting interactive piece done by various engineers
https://www.nytimes.com/interactive/2020/10/30/science/wear-mask-covid-particles-ul.html
I tried the QR code at the bottom to step inside the mask and of course it didnt work for me on instagram