I used to think so, Or lets say that gambling and trading has a big difference. Gambling is no sure about money back while trading is sure in that case. Gambling is a game where you have no sure wheather you win or not. So absulotely, gambling and trading are not the same.
Trading wont make also sure to get your money back since the risk on losing money is always there too and we know trading isnt an easy thing to learn which is opposite on gambling which we can easily play it without any hardships but when we are seeing for long term profits trading does really have the edge.
Trading needs some time to learn, but after you getting experience in trading you will earn money. Gambling is not like that for this no time to learn, just play and wait for your result. It totally depends on your luck. The risk is common but to compare to gambling we see less risk in trading. Here the experience is matter, but in gambling it not effects much.