Companies like Meta were all gung ho about remote work in 2021, when they hadn't seen the long term impact of it. The push inside Meta for WFH not being as effective for new employees started coming up in 2023 after the performance evaluations were done and they noticed a trend. You might argue that the data analysis might have been incorrect, but that's another question. The same company is also heavily cutting on office space.
I know people in tech are pro remote but let us not come up with these wild unsubstantiated theories to support what we like.
Remote work might not be as effective for every company on the same level, maybe it is the culture, maybe it is role dependent, but it is simplistically not just about some shadowy real estate moguls.