Honestly, I'm playing devil's advocate here. I love working from home and feel that the benefits outweigh the drawbacks in almost all ways. I agree with your sentiment, but without a good understanding of what companies are giving away and whether they can afford it is a big part of why back to office was hurried along.
HR has to basically rewrite the book on everything after such a big shake-up in the culture of employment. New calculations for salaries, new requirements for liability, new hurdles for IT, infrastructure, and security. These are all costs to companies because the culture shifted. Working from home was mandatory for a short time, but it wasn't obvious that companies could make it all work without time to sort out how to best do it.