Here in Europe, public transport is not done by privately owned companies, but by the Cities themselves. So the city is very interested in keeping them running.
And it can also keep the fares low by tax subsidies. For example, here in Linz (AT), I only pay €285,00 instead of €444,34 for an annual ticket, because the city of Linz pays the rest for its residents.