Until the masking and restaurant restrictions were lifted, there were next to no COVID cases in town and no one around us caught it. Meanwhile, my entire friend group (20+ people) in SF all caught it at some point. I'm the only one of the group that hasn't had it.
Logically, it makes sense: while you need to get a lot of things into the city, you can do that at scale in ways that are efficient (like trains, boats, etc..).
Also, if you live in a city, you're probably taking up much less of a footprint. Individual houses are really inefficient. Nevermind driving everywhere! :)