That is so the wrong approach. If I’m very reductive, I could say that if we automate everything there would be no one to commute left. Staffing is good for people: for safety, information, help for the vulnerable, expertise, robustness of the system, etc.
Perhaps some public services can’t turn a profit but are still necessary. Perhaps they can turn a profit if even more people use them. Perhaps other economic models are needed for these companies, see for example Singapore and Hong Kong where the rail company owns the land at stations and are allowed to develop there which funds the network and incentivizes buildout.