Also living in a dense urban neighborhood (in another large US city) and I have a similar experience. There are many bars and restaurants in walking distance, but also my friends and I host each other often. We know each other well, so we don’t worry too much about trying to come up with impressive dinners. I have some go-to recipes that I can scale up easily. Dinners are often spontaneous: group texts light up towards the end of the workday and whoever’s available will show up.
I think the real key is that we are all within walking distance of each other. Friends who live a ten-minute drive away (still close!) are also invited but rarely show up. Also, no one has kids yet.