That's the federal government which owns money printing presses. State governments do not and are often required by their state constitution to balance their budget.
There's nothing legally stopping the federal government from giving that to the states though. Which makes it clear that they just don't want to.
The federal government spends quite a bit on infrastructure at the state level. But, yes, the federal government also prioritizes certain spending related to foreign policy over other spending that's related to domestic policy (and vice versa).