Specifically, in a casino the odds are known and fixed in favor of the house. If I'm playing roulette at the casino and place $1000 on black, I have a less than 50% chance of winning (18/38) due to the two green spaces on the wheel. Over a long enough period of gambling the house will win and I will lose.
With stocks or cryptocurrency, things are very different. The odds are not known in advance, nor are they controlled by a specific organization. You can have a situation, particularly with stocks, where value is actually created and there is a net increase in wealth - this is not possible in traditional gambling, which is explicitly zero-sum.