Construction of road infrastructure can be compared to construction of tracks and stations, and it's fair to say taxpayers foot the bill in full for both.
The difference is that trains operate at a loss even with high ticket prices and operational subsidies are necessary for market viability. That is not the case with car and truck usage.