Gambling is taking risks with an expectation of possible gain.
In this case, the risk of never needing insurance is balanced by the gain of whatever is insured if it is lost.
One could argue that this is decreasing risk in exchange for less gain, but that’s still using a tool for balancing risk and gain, aka gambling.
Go too deep and life is gambling.