I believe most states have a balanced budget requirement and can’t borrow money for their operations, like the federal government can. CA, for example, has a rainy day fund that they use to even out the revenue fluctuations.
src: https://taxpolicycenter.org/briefing-book/state-and-local-ta...