The government is aimed at collecting taxes, and I think gambling brings them significant revenue, just like the sale of alcohol, so they will not restrict what generates money...
Despite the fact that gambling, like alcohol, brings heavy taxes to the budget, in many countries they are completely banned. In other countries, there are very strict restrictions on alcohol and gambling advertising. So it's not just about money, but it also depends on religious and social reasons.
I agree, these are countries where religion and societal growth is valued over the taxes or whatever gains gotten from things like this. Like you said, they are banned In many countries but in other countries they are accepted. The main reason why these ads are banned in most of these countries is to protect the younger generation from it. If this isn't controlled it would affect the minds of the next generation