They do have similarities in some aspects especially the involvement of risking money. Trading is very risky that it could make you lose all your money in short span of time, the same possibility in gambling. Though both also requires luck, but it has differences. You can gamble by only relying with your luck but in trading, luck is one thing but it requires deep understanding and studying the market. You can't just start in trading without learning the basics of trading but on the other hand, you only need to know how to play the game in gambling.
Trading is more technical than gambling. A normal person can enjoy gambling but may see trading too complicated and may not enjoy trading at all.