In the case of gambling almost 100% of gamblers are doomed to lose their money in the long term, that is at least 10% worse than trading as an option to profit from speculation and randomness of the markets.
In this case, it is necessary to recall that gambling is primarily aimed at entertainment and this differs from trading, where the main goal is to make a profit. So gambling losses should be considered as a payment for entertainment.
Of course, there are many differences between gambling and trading. We mainly gamble for entertainment. Entertainment with financial profit is a good combination. But trading is a learning process. If we do not learn trading properly, we will never be able to make money from trading. But with luck, we can win at gambling.