If you win - usually you'll get a thrill (associated with neurotransmitter/neuropeptide release) which across a long term creates a positive feedback loop leading you to enjoy gambling and continue to do so. Furthermore, if you gamble regularly you reinforce the habit - so regardless of how much you enjoy it you'll be more inclined to gamble.