If you're gambling when you believe you're trading or mining you shouldn't be trading or mining - you'd be better off dispensing with any pretence and just gamble instead. At least you'll have some fun, even if you know you're almost certainly going to lose.
Traders and miners - real traders and miners - aren't gambling. They've analysed the market, assessed risks and rewards, and have taken steps to minimise the chance of losing their investment.
I do appreciate there are grey areas - sports betting, for example, takes skill (knowledge of the teams/players/etc) and isn't down to sheer luck like roulette, for example. And "investing" in shares from a bucket shop is much closer to gambling than real investing. But comparing BTC traders and miners with gamblers is, in general, indicative of not having a clear idea what it is that traders and miners really do.
In general and by looking at your post clearly and narrowly, still you meant trading and mining as gambling. It's just that in that kind of method, traders have ways to minimize losses but the bottom line is still they gamble.
OK. With gambling (of the random variety, not the sports betting variety I put in the bucket shop grey area) the punter has no way of knowing what the outcome will be - the roulette wheel could stop on 1, 4, 17, 0 - or even 00 in some casinos. Even attempting to hedge (betting on red and black simultaneously) will see the punter lose over time (because 0 and 00 are neither red nor black, neither odd nor even). With trading a good trader can assess the likelihood of various outcomes - price goes up, price goes down, price goes sideways
and decide whether the reward justifies the risk. They could even hedge - make trades that profit if price goes up
or down. If they're good at what they do (analysing the market) they won't be condemned to the inevitable loss that the punter accepts if they spend time at the roulette table. The same applies to miners, albeit with a different market to analyse.
I'm not saying that it's impossible to gamble using an exchange, or gamble by buying mining gear. I am saying it's a bad idea, and that gamblers who do this would be better off acknowledging that they're gambling and finding a cheaper way to lose their money. And I'm definitely saying that real traders and real miners are not gamblers (except, of course, when they enter a casino).