Everything in this world has risks, no exception with trading and gambling. Trading can be considered as gambling if the person who did it don't have adequate ability to analyze market and lack of supporting data. He's trading based on his feeling only.
And everyone know about how trading has less risk compared to gambling , the similarity doesn't mean it could be the same.
Trading is a better job than gambling when you are planning to make it long term business.
Certainly trading can be a better job of gambling because the gambling itself can not be used as a job. Gambling can give us money but we can not make it as a permanent job, if used as a job, gambling can only be made as a side job, which means only to supplement the income from our main job.