^^ Regardless where gambling originated, China or India or ancient Middle East, gambling has been ingrained with humanity since the dawn of man. Perhaps our ancestors really found out a clever way to dice, whether to used it for entertainment or other purposes. And this is how we involved, and this is also the same reason why it's hard to get rid of gambling because it's already on our DNA as per our ancestors.
A great deal of our behaviors may seem to be relatively new but in fact they are very old, the truth is that gambling is everywhere, for example driving to your job is something that billions of people to every year and they do not think too much about it and yet they are taking a bet by doing so, they are betting they will get to their jobs without any incident, and while the majority of the people win that bet every single day there are a few that don't, and this is similar to what humans before civilization had to do as well in which they had to take risks for a potential gain, it is just that in gambling games the odds are more straightforward and you know them in advance, but other than that gambling games are not that different from the decisions that we take every single day.