Employees are part of the market dynamics. We choose where to work, and we vote with our employers.
It seems like at least one of these statements has to be false. My guess is that remote work is not actually good for all companies, which is leading some of them to call for RTO. Other companies will keep it, but perhaps not as many as employees would like. The same could be said for many aspects of work, like free lunches/dinners/massages, which are also disappearing as the supply/demand equilibrium is shifting as you describe.