You can’t really compare trading to gambling because their purposes are completely different. Sure, you gamble to win, but the main reason people do it is for entertainment. In contrast, trading is more of a serious business, it’s not meant to be fun. It’s usually boring, and you need to apply real knowledge and skill if you want to be profitable in the long run.
Think of it like this:
Gambling -- profitable in the long run? Almost always no. Maybe 1% make it.
Trading -- profitable in the long run? Yes, at a much higher percentage, especially with discipline and experience.