In every reason, there is always a counter reason just like a coin wherein there is always the other side of it. For us, gambling is ok for the reason that we think that it isn't the gambling industry's fault why people got addicted to gambling but rather the person himself is to blame but others blame the gambling industry for it.
It has been the case since ancient times. And the government does not totally ban them but regulates it instead. Just like in ancient Rome, the ancient Roman government prohibited woman to gamble on ordinary days but they always have a special occasion where every adult is allowed to engage in gambling activity.
Gambling is as old as human itself. If you we go back to the time when there was only Adam and Eve in the world they had 3 kids, 2 boys and one girl. So the brother had to marry his sister. And they fought and one brother killed the other. The first fight in the world was on woman. Adam ate apple bez Eve wanted to him to do that. So that wont end.
Well, all history leads to the present that we live in and each one of us contributes with our actions for the future, clearly gambling has always existed since the beginning of time, and what OP showed us is only part of what it has Gambloing has been from that moment on, we don't know if before that moment there were some games of chance or some other way of having fun in those times, but there is one thing for sure here, that games are a fundamental part of all evolution and all Humanity, games have made man aware of greed, addiction, and other things that gambling brings, whether they are good or bad things