I've always "hung out" with colleagues after work hours. Because we're all in the same boat, and have more in common with each-other than anyone else, because we spend 40+ hours a week in the same room.
It's a failure of HR and management, imo, when that doesn't happen. And it can be increasingly hard to fix.