I might pick up a hobby and make some friends there - these friends are going to linked to my personal life, not my professional one.
I cannot ask this hobby friend for a referral for a job in the future. I cannot ask this hobby friend for some help if I’m dealing with a difficult boss or a challenging technical problem.
I might ask this friend to come skiing with me or come to the bar with me though. That’s nice, but it’s not a work relationship and I can’t fulfill work relationship needs through it.