Both take risks but I chose trade only because in trading the earning is slow but steady and will usually have more chances of turning a long-term profit.
Earning can be slow and steady too in gambling and you can decide to not play a very high bet. All the above, you cannot compare the risk between the two to be the same.
With trading, you can easily be sure of making some pretty good decisions knowing how to do some analysis or judging from the market. However, with gambling, there is nothing you can do than to keep guessing blindly or just keep relying on your luck every time.
Want or not, your base bet will raise over the time. When people lost a bet, their temperature will increase and that's how people lost their patience and make a call "all in" in gambling.