Same thing, really. Dice games tended to erupt into violence amid accusations of dice being weighted; there was no practical way to sure that the dice weren't weighted, but the state had an interest in preventing violence; so the solution was to ban those games while allowing other forms of gambling which were less likely to become violent.