I'm dealing with this myself, and as others have said as people exit education and enter the workforce, there's often fewer opportunities to meet new people and develop friendships. In school you had multiple classes with all new people to get to know, in the workplace you're usually working with the same dozen or so people. I personally also have a detached workplace persona that's very different from me outside of work, and that barrier naturally makes it harder to make genuine connections.
Local events like farmers markets or board game nights at a local game store are great ways to meet new people, it just takes some proactive effort to find them, actually show up, and be open to conversation.
I started climbing and gained some friends through that. Activities with other peoples have helped me make friends. Then you invite them to spend time with you to do different activities, they invite you to do other things. And you make a little web of friendships.
Social activities of any kinds are where it's at, and many others who've commented here have the right idea.
save