Exactly, trading is better and more profitable than gambling if you have understand when to open a trade and come up with your own strategy that gives you profit. No matter how small the profit in trading is, it's never by luck but skill. In gambling, you might not have the knowledge of the game but your first time might give you a big win because of luck.
Trading is clearly more profitable in the long run than gambling, especially if you follow your own strategy. However, it should be noted that sometimes lucky gamblers win such large prizes that traders can only envy. For example, I recently saw the news that one gambler won more than $1 million in slots. This is an impressive result, considering that not every trader can earn so much during their trading career.