GDP provides a rough measure for how fast a country could drain its debt—similar to looking at debt-to-income ratio when issuing mortgages to individuals.
"GDP" is just a measurement of economic activity. It is not a measurement of income. It is not government income. It is not even government cash flow.