ELI5 How come State Farm insurance can’t “afford” to insure homes in California but can afford all those commercials and expensive marketing?

[removed]