Gambling is spending money with the hope of getting a good surprise.
Taking an insurance is spending money to prevent having a bad surprise.