Don’t confuse socioeconomics for inherent advantages. Adjusted for income people live longer in cities, they are thus objectively safer.
Wealthy parts of cities have vastly better schools and less crime than the average suburbs, but the American middle class abandoned cities. Air pollution again can go either way, suburbs often have surprisingly terrible air quality made worse by long commutes.