It is like trying to get your protein requirements met from potatoes. Yes, you can if you force yourself and try really hard. However, it is much more efficient and pain-free to get it from a protein shake.
In this context, it means using the time you save with working from home and using it to meet people interested in the things you care about.
The reason socializing at work sucks is because it is not a very natural environment to make friends. Alliances, yes but friends are harder. Even if you make genuine friends with someone there, if you're working with them directly, their career will take precedence over you. Most people are skeptical of their coworkers and it is a constant power dynamic to prove one's competence and status.
Much easier to find true friends outside of work.
That's not healthy and it shouldn't be the basis for company policies in general.