Gambling companies have engineered sophisticated addiction machines that exploit the brain's weaknesses, so it's very different to most of the other things you listed. They also deliberately prey on the people most susceptible to getting addicted, and even engage in extremely predatory behaviour like giving high-risk targets all sorts of "free" perks and benefits in order to keep them gambling for as long and much as possible. I can't find it now, but a few months ago on HN was an article about one of these systems, where the gambler got a dedicated "advisor" that was giving them things like free rolls, free tokens to gamble with, free alcohol and even accomodations, all because they know the addicts will keep gambling and use their own money inevitably. They then ban people who are gambling too "smartly" or even just on lucky win streaks from participating in their "games".

Smoking is a great example and an almost 1:1 parallel to what's happening with gambling, they had teams of people and even paid off scientists to fabricate studies about the health benefits of smoking, and then used deceptive marketing that was very carefully crafted to ensure people tried it out, and the product itself is just inherently addictive. They ensured they can capture the next generation by specifically tailoring their adverts towards children and getting them curious to try tobacco.

As a result most of the world has banned tobacco advertising, and a lot of places are doing things like enforcing ugly generic packaging with extreme health issues plastered on the boxes, exorbitant prices & taxes on tobacco because of what Big Tobacco did.

Gambling should be treated the exact same as tobacco is and was. Advertising it should never be allowed in any context whatsoever, and the gambling spots and apps should have disclaimers all over the place indicating the dangers of it. Additionally, the actual companies should be heavily regulated to not be allowed to offer "perks" and to also not be allowed to pick who can play or not.

Gambling, like most things, is simply something that will always be a thing, so just like tobacco and alcohol it shouldn't be banned outright. That doesn't mean we need to let predatory practices proliferate. Nothing is stopping us from making gambling as unattractive as we reasonably can, both for the gamblers and the gambling companies. There will still be gambling, but just like tobacco there will be a lot less people doing it, and at that point the ones that are are at least as protected and informed as possible.

It's funny how first you say that 'it is very different' and then you proceed to show that it is in fact exactly the same.