It’s largely legislative changes that have made insurance unprofitable in those states. Florida’s bad faith law and banning of international reinsurers have both hurt the industry a lot. California has had wildfires for a long time and their frequency hasn’t increased much over time.
I left a more detailed comment elsewhere in this thread if you’re interested.
Insurance policies are short-term and climate change is going to take longer to really hit. Climate change isn’t why but rather legislative changes. I’ve left a more detailed comment elsewhere in this thread if you’re interested.