College is the last place that can potentially offer this type of community but attending college does not guarantee you'll have such an experience. Even though you missed the experience I'm sure you observed this thing in colleges called "Frats." They get a bad rep, but a fraternity is a good example of a place where you will get this sense of community, however transient it is. Still it is in these communities where you can actually form lasting relationships. Although the majority of people don't see each other again, I'm sure most frat members graduate with one or two lasting friendships.
One part was the more transient community you described: I could sit in a downtown coffee shop, sit in a study space on campus, etc. and see throughout the day various friends and acquaintances. And honestly, this felt great. It made me feel surrounded by friends and a quick chat provides a fulfilling diversion from work. Of course, many of these relationships faded/are fading away with time after college as life goes on (and that's neither an inherently good nor bad thing).
But I also made deep, meaningful, friendships. And I think this is important because it prevents you from the depressing 'isolated while surrounded by friends' type of feeling that social media can give. For me, these people came from the guys I lived with and near freshman year and guys/girls whom I went to church with. (A church by no means has a monopoly on creating healthy community and many churches have unhealthy community. But a church, that is healthy in my opinion, has fantastic community. It's one with trust and care towards each other regardless of flaws and mistakes. It's also is a diverse community with people of all sorts being brought together by a common hope.) Interestingly, one focus we had as a church was intentionally building these kinds of relationships: asking each other out to breakfast or lunch just one on one and having honest conversations with each other. I think this is a great way to form deeper relationships with friends.
I mean, if you were to meet someone as a freshman in high school, would you were about the same thing? You have 4 years. So what about college was different?
Both people can try to build a long lasting friendship, but if only one is trying while the other is being opportunistic, it's less likely to go anywhere (speaking generously).
- sports/activity/etc. club with regular events - student organization - dorm life - very specific subculture
The basic formula is time + regular 'unstructured' interaction with a a relatively small group of people. College usually provides the first, but the second might take some work.
In high school, you get both by default, so there's a decent change you at least made some friends, either from the large group you interact with, or from the tiny group of other outcasts that you're part of.
I think many ills of our society would significantly lessen if we create environments and lifestyles where 'time + leisure within small tribe' can exist again. Cities can offer the latter pretty well, but time always seems to be a bit of a problem.
So GP's point might still be true, albeit in an unintended way. Cities are sufficiently similar to large universities that people who are familiar with college will often find city life familiar as well.
Now, I do know clusters of graduates who wound up working in the same cities, and some of them seem to be pretty steady friends. But without that, there is little to hang on to, even if you were good friends.