I mean, the real reasons have nothing to do with productivity since productivity actually increased with remote and hybrid work. The real reason is they aren't doing as well as expected, partly due to some recent problems, and have a many investments in commercial real estate and they need a boom to make some quick profit for shareholders.
I retired from programming because of that "open floor plan" shit, with the added bonus of no permanent desks. It's so insane to inflict that bullshit on programmers in particular, because our productivity (or mine at least) requires a quiet, distraction-free environment.
I bought noise cancelling earphones solely because I can’t focus with my peers sharing an office with me. Those things have saved my sanity and productivity.
You get free coffee? We have to buy our own machine and run a "coffee club" to pitch in for ongoing costs. I opt to instead nod off at my desk. I don't even care that it's an open office and that people can see me.
Even my absolute worst job, which had a total fun of an office, had free coffee (later found out another location across the country did not, while the main office was in a fairly nice office tower with good lighting, free coffee, and a nap room)
Which is fucking stupid, because you lose the good talent and get left with the ones who can't find a place that treats them better. But then again, it's just standard modern day capitalism trying to make the line go up for another quarter, no matter the long term detriment.
And it's not even guaranteed to work. All corporations seem to be doing (quiet) layoffs so most employees just suck it up and commute, brimming with fresh resentment.