Really depends on the individual countries. Some countries subsidize the tracks for everyone (including freight), others just the passenger rail companies. Heck, in the EU there's even quite a few open-access operators who are fully for-profit.
knowing the cost of a bullet train railway, and the fact that freight trains don't use them, I'm skeptical, as far as I know, it's tax money and debt that "pays" for it.