It's actually workers like you that are toxic to a company. Young people just don't have all the experience as people who have been working much longer. You may know the theoretical things needed to be done when you start, but you don't know the practical daily things that make you a good worker, dealing with clients, dealing with exceptions, dealing with company secrets, and dealing with colleagues. People that don't want to interact woth colleagues are dangerous to the longevity of your company as when they fall away you have no backup or information sharing. I've seen it way too many times where complete projects grinded to a halt because a loner, who thought exactly like you, had an accident or just left to another job.
Spoken like someone who has no idea what someone else does for a living and operates off of assumptions. Here's some free education for you. Your company longevity is only as good as your written documentation.
During my tenure at one employer, my documentation was actually published as the manual on how to install and configure our software product. It shipped with the software because I wrote it in exacting specificity. At another company, I wrote the documentation on how to set up and configure a piece of IBM's bloatware in our environment in such detail that the CEO himself, with minimal technical competence, could install the software. Every single dialog box, option, checkbox, and button is explained. With screenshots, no less. In code, everything I write has detailed code comments so that anyone coming in behind me knows exactly what that piece of code does and why it was written that way.
My bar for success in my work is such that I literally try to write myself out of a job, either through automation or with documentation, because I know full well what could happen to the company if I got hit by a bus. If you are dumb enough to base the longevity of your company on the impermanence of your workers, then you have no business being in business. There is no replacement anywhere for clear, comprehensive, documentation. There is no excuse for failing to demand that of the people that are working for you. If you have a problem of knowledge silos, then you have a corporate culture issue that you have failed to address and no amount of energy hogging office space you throw at it is going to correct that problem.
Lastly, in my line of work, I don't deal with the company's clients. My clients are the other developers in the company. The area I specialize in is highly regulated by an array of both domestic and foreign regulatory agencies. Security requirements are literally baked into the job by virtue of the laws that have to be met just to continue operations. Secrecy and confidentiality are absolutes that exist irrespective of whether there's an office and a commute or if I work from home.
There is absolutely nothing you've brought up that suggests wasteful commutes to archaic offices is better than working from home in my line of work.