That's how the insurance industry formed. Basically people hedging risk using bets. Insurance is gambling.