Insurance is not Gambling
Insurance and gambling were considered alike because there is an uncertainty of events and payment is made when the event occurs. Like gambling, the insured is unaware of the time and amount of loss. If the event occurs, the insured like the gambler gains; otherwise, they are experiencing the loss. But there are certain differences between the insurance contract and gambling. source