Banks didn't lose money, their customers did. Mom, kids, families
I didn’t though.
Assuming its a government that operates in its own fiat, it creates it. It may engage in play-acting to pretend that it is working in an external currency where spending must be balanced by revenue plus borrowing, but that is just a fiction and residual habit from a time when it worked in something other than fiat.