California did have a huge budget surplus, somewhere in the 65–70-billion-dollar mark, due mainly to Federal Funds and the economy opening back up after Covid.
The problem is California doesn’t use the surpluses to prop up their state pension systems, they blow on things like free medical care for illegals, bullet trains to nowhere, etc...
California got some $50 billion in “Covid relief” payments from the federal government.