My guess is vending machine transactions are covered by contract law and gambling on machines is covered by gaming law.