It's private companies making a bet on the AI boom.
What governments do (which is the actual content of the article) is betting on economic growth to exceed the growing debt.
Betting on economic growth exceeding the piling up of debt is something most governments around the world have been doing for about 40 years straight now.
Governments offer tax incentives for AI investments.