Were those municipalities and provinces receiving any money from the federal government and is that how they had surpluses? That's certainly how it works here in the US.
I’m also not entirely sure how relevant that is due to states (and provinces) not printing their own currency though. Very different situations.