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.