Licensed casinos keep track and try to preserve their reputation, so they don't cheat. It is quite difficult to obtain a license, but it is easy to lose it for illegal actions.