Gas Stations pay for themselves. Otherwise its also tax based.
Still completely free public transport is not a good idea instead of investing in a high quality offering. (Higher Frequencies, Better Vehicles, more dense network). Because People usually take the car because it is more convenient, its always more expensive than public transport.
And in the past, free offerings have just diminished people walking or taking the bicycle, but no shift Car>Public Transit