In gambling, you are trying to determine what you think the outcome of some event will be, and in the long run, you will always lose.
Additionally, life insurance policies normally have a cash value and can be surrendered at any time. In gambling, there is no cash value. Once you lose, that money is just gone.