No...but for people to win at the stock market...some have to lose. Not everybody wins. The stock market is gambling with better odds.
The appeal of something like Powerball isn’t like the addiction of gambling. It’s the fantasy of telling the boss to shove it, of rewarding those who have helped you, of status in a culture that increasingly respects nothing but money, etc.
People who sell when the stock goes down are choosing it, they want to sell and can’t complain. They decided the stock was not as desirable as the money.