There are many common traits between gambling and trading. Like both the activities are very addictive. Also, it is true that majority of people in both these activities will loose money at the end of the day.
However, let us see how is trading different from gambling. In trading, one has to apply logic and techniques based on past behavior. It is not random but actually a science which can be mastered with practice.