That seems wild since exchanging “bet” for “stock trade” results in a very different result…

The difference is there's a clear societal benefit to stock market investment, whereas there's a clear societal detriment to sports gambling as it exists today.