Working from home doesn't work for companies who don't know how to do it. It's not the same as working in an office and of course many companies are doing it wrong right now because they leaped into it without any knowledge of how to do it.
But plenty of companies have done very well with working from home, and had all the healthy teamwork anyone could ask for. It's not a matter of opinion, it's proven fact.
You can say exactly the same from the opposite perspective.
I'm a freelancer and while I am _personally_ more than happy with remote work (prefering it for many years), many people are not. It is also a cultural thing, agreed. But the culture based on personal contact isn't a bad thing per se. In many cases it is superior, especially when considering mixed variations. Regarding the argument that companies get remote work wrong, the same is true for the former normal of physical presence. There is simply much more experience with this. It will not need much time, until remote work shows his nasty sides large-scale too. And they are there yet. Control mechanisms as one of the more unsubtle examples become more sophisticated every day.
Forcing people into the office isn’t about producing useful output.
It’s about embedding an expectation, and routine.
Kegerators, snack bars, they’re not about motivation. But embedding buy in.
I think this touches on an important aspect of working remotely: a high percentage of open source developers participate in these collaborations not because of financial reward, but because they are on some technical level passionate about the project(s) they are involved in. In other words, they find relatively strong intrinsic motivation in their endeavors in comparison to strictly external rewards such as remuneration.
Personally, I find that the presence/lack of such intrinsic motivation plays a far greater factor when working remotely than when I made hours at the office. In the office, social interaction and a clear-cut shift would compensate for otherwise intellectually unrewarding tasks, whereas at home the same kind of tasks often seem to turn into solitary mental struggles.
In other words, the freedom and efficiency of working remote can be wonderful, but I find it only tends to work out like when I'm (on some level) genuinely enthusiastic about the work at hand.