It doesn't happen automatically if the government in question acts irresponsibly, which more often than not unfortunately is the case and also the reason why structures like the Euro convergence criteria are in place to keep governments in check (which in recent years often hasn't exactly worked out).
Re:Keynesian Economics Is Hot Again
by Consultant32452 on Sunday December 31, 2017 @01:31PM
(#16041890)
http://www.macrotrends.net/1381/debt-to-gdp-ratio-historical...
The last 37 years aren't looking so hot. :(
This happens automatically when growth is strong. Even if the nominal debt keeps growing, it shrinks as a percentage of the GDP, so long as the growth of the GDP is faster than that the growth of the nominal debt. So for instance, in the USA, between 1945 to 1980, the national debt shrank from 98% of GDP to 33% of GDP. The USA ran budget deficits in many of those years, but it didn't matter, because the nominal growth of the GDP was much faster that the growth of the debt.