It absolutely was luck. You didn’t get hit by a car driven by a driver with no insurance. You didn’t get a rare form of cancer which your own insurance won’t cover. You didn’t get suddenly laid off and have to move because there are no other prospects in your area with good enough pay. All of that is luck, not skill. All of it can wipe someone out financially.