You're conflating the downsides of not allowing remote working with the perceived downsides of enabling public transport. That's.... muddled. Public transport provides plenty of value beyond commutes, and the future of work and of commuting is mixed modal anyway: people working at home some times and outside the home at other times, and getting around on foot, on bike, on scooter, on buses, trains, metros, light rail, heavy rail, boats, and sometimes private cars too.
The existence of trains does not cause the existence of RTO policies, and trains can be very comfortable and safe, and it's just weird and deeply, deeply American, to claim that they can't.