Allstate, for example, is billions of dollars in the hole on paying out claims for the past decade. Most insurance companies are.
Edit: I'm talking about underwriting losses. Selling insurance and paying claims is a sort of loss leader for the insurance industry. Insurance companies are net losers on paying out claims, but they make enough back by investing the premiums before claims have to get paid, that it is still a net profitable business.
Essentially insurance companies are loaned money by their customers since they are selling a promise of future payment on claims. They invest this pool of money and keep the gains until it is time to pay out on claims. Many companies (like allstate) pay out more in claims than they collect in premiums. For 2022 and 2023 they paid out 5 billion more in claims than they took in in premiums. Those were pretty bad years, but over the long run, just about every insurance company loses money this way.
Look at their financial reports if you don't believe me: https://www.allstateinvestors.com/static-files/d61a8007-647a...
Additional Edit: this comment is particular to the big property and casualty insurance products (home and car insurance on the consumer side). Best Buy extended warranties, health insurance, and other products may have business models that rhyme, but that don't follow this exact fact pattern.