> People haven’t been paying for offices for the last ten years for no reason.
Companies do so many suboptimal things that this argument isn't credible. We've seen how many organizations can barely limp through a "digital transformation", so why should we expect them to be operating anywhere near optimally along other axes? They could just as easily be paying for office space because of tradition or internal momentum, because it confers status or because it gives executives a feeling of control. (This isn't even speculation: I've actually heard executives say that they want people back in the office to keep an eye on them and make sure they're working hard.)
It's not that engineers "don't understand" that "every other function functions better in person", it's that they disagree—with a pretty reasonable basis at that. Companies pushed open offices on the back of the same kind of baseless assumptions contravening both research and individuals' direct experience, and the push to return everyone to the office isn't any different or better-supported.