In sports? Perhaps you just observe a player get injured in a car accident and bet based on that.
Gambling is just hoping probability comes up in your favor. You'll lose over the long term, but you could win an individual bet. Neither is under your control or can be influenced by any "inside" information. The dice don't care what you know or don't know, and bets don't change the payout.
Granted some types of "gambling" such as horse racing or sports in general are more like a prediction market than a true bet against odds, where knowing something that the general betting public doesn't know could be used to your advantage.
Obviously, insider trading, but as a society we have long decided that this is evil.
And if we compare markets where I am ready to put my money where my mouth is, then this actually is called gambling. Just not a game of chance but rather game of skill.
https://en.wikipedia.org/wiki/Depository_Trust_%26_Clearing_...
It becomes problematic when we make a game of it and add financial stakes. Gambling is a lot like drugs in its ability to hijack the brain's reward circuits. I stopped investing in cryptocurrencies because seeing +400% profits was like crack. I never gambled any money I couldn't afford to lose but there are people out there who were leveraging their entire lives to FOMO into markets.
You actually participate meaningfully in the outcome via investing instead of just price discovery and the successes are derived from the valuation or income of the venture instead of the losers. The participation is not only in impact on their credit rating and sales but also concrete choices in government of it.
Not to mention in principle there is an actual activity being backed by the investment to produce non-zero sum gains. While there may be risks involved in say, running a turnip farm or sending a ship across the ocean, you are still supporting a useful activity for its own end. Crucially as well there is motivation to do the task even without the market, even though it may enable it.
If you can manipulate the outcome of the turnip farm (as opposed to the market) to make it succeed that is doing useful work and not just cheating a bet. A guideline of the distinction would be - would charging somebody for making the outcome successful in a not otherwise criminal way be a Kafkaesque injustice?
You can in fact use the market to gamble via options intended for credit or insurance but stopping those by stopping the market entirely would be throwing out the baby with the bathwater.
Investing takes x capital, put it into a machine, and x + (yield * x) comes out. In gambling, x is put in, x always comes out, but on the way out x is simply distributed among a different population.
Investing literally creates net value (or loss, technically) that didn't exist before. Gambling cannot do either: x is always constant, however x is divided up differently.
There's many videos about this: https://www.youtube.com/watch?v=HnRslDPlkg4
So, I guess the answer is, regulatory control.