Counter-Strike especially has a pretty nasty gambling scene that Valve refuses to control, even though its only possible because of their marketplace and APIs.
They knowingly profit from gamblers if you will but gamblers are going to gamble.
The gamblers were offered e-sport or gambling and they chose the latter.
You could use Robinhood to build up a growth portfolio starting from a handful of dollars or you could use it to buy 0DTE OTM options on credit. Guess which one the gamblers chose.