Hospitals should absolutely have a supply of formula for when situations arise where a mother can't breastfeed.
I had DD at 11.30am by caesarean and was back in surgery shortly after until nearly 8pm and in intensive care for a day. DH had to leave the hospital while I was in surgery, and drive around until he found some formula, he had no idea what to buy, what supplies he needed. What an awful situation to place a new father in while his wife is in surgery to save her life. Just because our hospital refused to supply formula.
Of course we would have been happy to supply our own once the situation settled down and he could go out to get some the next day, but to not have an emergency supply of formula for situations like this was disgraceful.
Looking back now we should have done some research into formula feeding before she was born, but you just don't think that these things happen to you.