Sure, when you compare a "nice suburb" to a "rough area" of the city you'll come to such conclusions. But if the city you lived in is anything like mine, that disorder you experienced is likely highly localized to those "rough areas". Given this, it might be more helpful to compare a "nice suburb" to a "nice area" in a city.
I'm glad you chose the experience of taking a walk as your original example because it was instrumental in helping me to decide that I wanted to raise my family in the city.
COVID offered an opportunity for my young family to spend a month in the suburbs and the thing that sticks with me now after all these years later is how much I hated taking our then 1 year-old for a walk as compared to the city. In the suburbs we walked past the same houses on the same sidewalk-lacking streets barely seeing anyone else. If we wanted anything beyond that it required loading our toddler into the car.
Compare this to a nice area of the city where the density allows for a vast array of possible destinations and plenty of folks to smile or wave at on the way. Walks these days could be to the local park on a Saturday morning for the farmers market, or to the local Italian Ice spot because the weather hasn't gotten too cold yet. While it's still possible to have those experiences in the suburbs, it's hard to be as spontaneous when you've got to consider things like car seats and parking.