Permanent life insurance

I have never understood life insurance. It is a bet you take on yourself dying. You loose either way.