The problem you're running into there is you're treating public transport as a capitalistic for-profit business incentivised by making money rather than a public service incentivised by serving the public. When public transport is run purely for profit the goal is to find the maximum people will pay for the minimum level of service.
Regardless, free public transport with privately owned public transport can still work. Where I am there's free public transport by bus for anyone under 22, over 60, or with a disability, funded by the government despite the fact public transport is privately owned. The only complaint I have is that I don't fall into any of those categories. The busses are usually clean enough, regular-ish (usually one every 15 minutes for popular routes at peak times), and you'll usually get wifi and maybe a usb charging port. Modern busses are electric too which makes use of our mostly renewable energy generation. It's like a train that can get stuck in traffic.
It might be a lot to ask in some places but really all you need is a functioning government who work for the people rather than themselves. Enough people use public transport that it puts pressure on politicians to keep services running well otherwise they get voted out.