"The actuaries know that the losses all balance out in the long run.
Yes, but the problem is that sometimes the short run comes before the long run, and you get wiped out.
They didn't get wiped out. But that is what reinsurance is for, the catastropic losses. Most companies have several layers of reinsurance, especially in cycles when rates are cheap.