Vaccines are not a great business in general. (Which is not the same as saying they're unprofitable.) But one reason vaccine makers are generally indemnified against lawsuits in the US, it that at least some companies would probably pull out of making vaccines if they weren't.