From my experience though WFH just doesn’t work. People aren’t as invested in the company and they produce worse results. If companies could figure out how to keep productivity and quality up while not paying rent I’m sure they would, it’s just nobody has figured out how to do that on a large scale yet.
Edit: My experience with WFH has to do with software development. It may work for other fields, however WFH often attracts the wrong kind of employee which is why I don't do it anymore. If you can't be bothered to drive 10 minutes into work you probably aren't that motivated and you probably won't stay that long.