Governments DID see this coming, both federal and state. California, at one time, was prepared for exactly this crisis. The 2008 financial crisis wiped out state budgets
I don't know about California but the same kinda shit happened in France.
In 2007 our health minister had a bad time because she orderer massive amount of tests, masks, and hydro-alcoolic solutions. It was during SRAS, and at the time for 'nothing'.
All those item were needed 3 weeks ago, but the stock were never fully replenish since. Most of those things are perishable.
FWIW CA's tax system is pro-cyclical, because they do tax the richest 1%'s more, but the result is that 1%'s don't make any capital gains in recession years so state tax revenues get obliterated during recessions.