The government has its own money. For example from national owned companies like airlines, mines, factories etc
Richest countries have a lot of government owned companies. USA is just an anomaly because of Chicago school of economy.
This is a common myth spreaded by free market freaks.