The stock market is something that is a risk. But intelligence, education, and research plays a big role in success.
The financial markets are more of a gamble than almost anyone is willing to admit, and the more esoteric instruments are pure speculation. OTOH, there are forms of wagering-poker, horses, sports, etc-where intelligence, education, and research are as important to success as in the stock market, or moreso.
I've heard professors and preachers try to argue that one is nothing like the other. An essay question on one of my undergrad Finance tests was to explain why stock market investing is not gambling, and vice versa. I spit out the required answer, but I found the premise unconvincing, then and now.