How can home insurance companies stay in business if they're cancelling policies?

This is in the context of the CA wildfires where insurance companies are dropping coverage for many areas in southern CA, they rely on having customers pay into the pool of money but if they cancel policies or raise the prices far beyond what people can afford won't they have lower profits and risk going out of business?