Function specific offices typically only exist for roles that can be done alone. Sales is a great example; it benefits from the competitive atmosphere, but sales people aren’t generally sharing leads or collaborating on deals. That, like engineering, is actually a role that could work just fine WFH.
But many others cannot.