No one said your co-workers must or should be your only social connections. Simply that it helps if they are A social connection.
You're still going to deal with your co-workers eight hours a day. Dealing with people who think of you as a friend is a lot easier than with people who don't.
I want to deal with my co-workers as professionals, definitely not as friends. They are not my friends, I’m paid to work with them. Companies are more productive when you remove social drama, not less.
There's always social drama because humans are social creatures and not machines. Hiding your head in the sand doesn't make it go away but merely means you're at it's whims with no influence on it. The difference is that if you're viewed as a friend other people first give you the benefit of the doubt since they assume you had good intentions. If you're not they don't and then things can escalate very quickly and not in your favor.
It sounds like you’ve worked under terrible management if you’re having these problems. On a properly run team people don’t squabble and politic. It is possible to work in a healthy manner, remote or otherwise. The drama you avoid when remote stems from not being forced to co-locate with individuals for a large swath of your waking hours. That is a breeding ground for unhealthy behavior.
I have yet to see a non-tiny company that doesn't have political squabbles cross-team and especially cross-department. It's the nature of many groups competing for finite resources and diverging goals. I have however seen many engineers be utterly obvious to the politics going on and getting burned by it in the end.
It’s unprofessional to suggest that you can only be productive if you are surrounded with friends. I will happily produce with a team made up of people I would never socialize with. It happens all the time as none of my real friends even know how to code. Not once has this impacted my performance.