Somehow? Money the spent is money in the economy, not in the government. It’s pretty easy to understand, I think.
Alternatively, money is grifted for political patronage.
Huh i wonder how we can prevent that problem
Are you saying that the most corrupt US president ever (an individual so mentally challenged that managed to bankrupt FOUR casinos, the only money making machines where the customers literally throw money at you) grifted billion of dollars from the most valuable IP4 addresses in the world?
How is "the government" not part of the economy?
Do you imagine all their employees spend their salary in some secret separate economy? Do you imagine all the toilet paper, pens, plumbing repairs and jet fighters they buy are from some magical not part of the economy source?