Especially if you relocate away from your hometown for a job, I'm not sure why that would be surprising to anyone. You spend at least 8 hours a day with these people, it only makes sense you'd eventually build some connections with them. And as the parent post points out, it certainly makes the days more enjoyable when you've built healthy relationships with your peers.
And come to think of it, most people 30+ I know seem to have friend groups of almost exclusively current or former coworkers. I don't think I'm by any means unique.
If it were just you & I comparing our individual anecdata I'd have chalked it up to that, but this feels like perhaps there's something more going on. I suppose one explanation is that people who form close bonds with coworkers are going to be more likely to hanging out with others who form close bonds with coworkers and vice versa?
I mean, they are most likely to be hanging out with friends they made at work, who at that moment would also be hanging out with friends they made at work.
I'm still friends with the previous coworkers that I formed the strongest friendships with.
Just like pretty much every social situation, not every relationship can be a strong one. There will be a lot of weak ones that fall away when circumstances change (e.g. leaving school, moving to a new town, getting a new hobby and having less interest in old ones, etc). However, those weak ties can still be valuable and enjoyable during their lifetimes.
Honestly, the idea of being at a company and not walking away with at least a few long-term friends is very foreign to me.
A purely transactional workplace would be a miserable place to work. It’s much better to work somewhere where people can respect and appreciate each other beyond what’s necessary to close out their next Jira ticket.