Commuting can be expensive and even potentially dangerous. Car, insurance, gas, dangerous traffic, time wasted driving at least 2x a day.
There’s also the potentially unproductive office environments: loud, annoying co-workers, constant interruptions, etc.
RTO has costs, WFH has benefits and employers who don’t recognize that should be shunned. If the reason they require you to come back is because they wisely rented office space and didn’t even consult the employees on whether the workers would return, that should tell you how much you can trust management and how much they value you as an employee.