When you approach airport security (theater) you wonder what their capabilities are _today_. Are they sniffing the air at large with their GCMS? Is there going to be a dog today? Its intimidating to think of it as a theoretical attacker because of its large and multifaceted apparatus, which is part of its deterrent power.
Masks are somewhat similar, they have a vanishingly small chance of actually intercepting a virus particle/droplet that was going to infect you on a case by case basis BUT they make people approach you differently. They say "stand back".