The only similarity that trading and gambling has, both can mess up with our funds quickly especially if we are doing them blindly. The risk to lose is always high, and that even pros in trading and gambling aren't excused from losing their money.
The difference is, trading can make more money than gambling if you have reliable skills and strategies, but if what you have is just luck alone, just stick to gambling and forget about trading.
I am sure that nobody has the luck to win from the casino and continue to win big everytime, because of the abstract and unpredictable nature of the concept called luck. But in trading, speaking only of spot trading we can still attempt to do what is right which is buy low and sell high and that will lead to profits in the long run even if slow and steady.
If someone is looking to get rich quickly, they are in for disappointment because no such thing actually exists in the world, legally.
The comparison between gambling and trading comes in because the later also has some luck component present which is true in every endeavor in life.