In gambling, you play with pure luck with the hope of winning, in investing/trading you take calculated risks with expectations of future returns.
In other words, you have limited control when investing and no control at all when gambling.
Watch this video for more clarifications