Gambling is an adversarial relationship. Insurance is co-operative.
When I insure my house against fire neither I nor the insurance agent want my house to burn down.
When I gamble on Man Utd to win 2-0 with Pogba to score the bookie doesn't want that to happen and I do.
Anything that is co-operative is insurance, anything that is adversarial is gambling.