Before gambling is being banned in a country, I think law makers already considers both the advantages and disadvantages of allowing gambling, but if allowing gambling will cause more damages than the positive advantages, they will have to ban it, but in this case, they are not banning casinos but are increasing the tax percentage which has forced some casinos to close down because the tax is heavy on them.
In my country, gambling is prohibited, and I don't know if there are any physical casinos operating there. Even if there were, I think your statement is correct. The government might have banned them and ordered them to stop operating. It's also possible they'd allow them with certain conditions, such as increasing the tax rate. In my country, the government is quite selfish, so they sometimes do whatever it takes to make money.
Furthermore, many online casinos are still operating, despite previous reports of access being blocked, but that hasn't completely helped. Currently, some are still operating, and many are. The case is that there are rumors that they (the government or authorities) are working with casino owners, so the casinos are protected by the government. If this is true, it must be because of the profits they make.
Before gambling faces a ban in any country lawmakers usually weigh its effects carefully they consider how it impacts society economy and public behavior if the harm outweighs the benefits a ban becomes the chosen path but sometimes instead of banning they raise taxes on casinos to gain revenue and control the industry when taxes grow too heavy small casinos collapse while bigger ones survive and adapt that becomes a way for the government to profit while appearing strict.
In places where gambling is fully prohibited the logic is often tied to moral social or religious grounds the government may fear addiction crime or financial instability among citizens sometimes they act out of concern but other times power and money decide the outcome when control and profit are involved bans can turn into tools of negotiation not protection. Even when physical casinos vanish online platforms continue to thrive blocking access never truly works the internet creates openings and gamblers find ways to bypass restrictions in many countries reports show that some authorities secretly cooperate with casino owners letting them operate quietly in return for hidden profit that relationship keeps the flow of money alive even under a banner of prohibition.