I think governments usually set rules and regulations to ensure the fair operation of games, prevent underage gambling, and protect players from fraudulent or unethical practices. In some instances, governments also ban certain types of gambling entirely. The regulations can include licensing requirements, minimum age restrictions, restrictions on advertising, and limit the maximum amount that can be wagered, among others.