I don't think friendship is a substitute for the socialization an office provides. A roommate situation might be, but that has other serious challenges.
For many people, making new friends as an adult gets harder with age. Part of that is that we're not compelled to join things like we were as children. Part of it is that we have the cumulative time and means to create our own favored environments - my house has some kick-ass stuff in it and air conditioning, so why would I leave it? :D I kid, but kinda not.
As I've gotten older, I've made a point to get more involved in entirely voluntary organizations (collector's groups, church, etc) and it takes work. It's rewarding on the balance - good for my personal growth and good for the group assuming they would agree that I bring a modicum of value to the table - but it takes a dedication that doesn't come easy. Kind of like exercise, right?
An antipattern here is expecting to replicate your quality childhood friendships quickly. Friendships, particularly intimate friendships, take a long time and many shared experiences. 80% of the job is just showing up, so nothing kills budding friendship opportunities like flaking out one too many times. Show up!