That is exactly the national debt you are so worried about.
If all the countries were to settle their accounts, no country would be in debt, but then they need to stop international trades.
No country ever really pays that debt because they do business with each others.
The vaster the international business, the larger the national debt.
Just a little unpopular, controversial opinion. Please don't block me.