Greed is prohibited in the Bible (1 Timothy 6:10) not gambling. But excessive gambling activity may lead us to sin. Please take note of the word excessive, and may lead.
Yes, gambling is leading everybody to become greedy so it lies down to sin. It creates emotion and that's why it is being generalized by everyone that it's a sin.
Well, it's still an activity that each individual has the power to conquer its negative effect or allow it to control us which is making the others to have a bad ending.
That is why, as I have said before, in many threads, if people managed to see the game as a means of entertainment, there would be no cases of addiction, because addiction begins when the player has the overwhelming need to win or win no matter what, and since sometimes when you play with a lot of pressure you usually lose, you can't do anything else, and that desperation makes the player more frustrated and when he tries to win he loses, the problem with this is that he lends money, asks for money from their friends, family, and many problems associated with money and the way they play begin, they cannot control greed.
On the early days of the US many of the public projects were financed by the use of lotteries, it is quite odd why at some point in time it became illegal when they had such a huge influence on the early days of the nation.
But eventually it made a comeback thanks in part to the organized crime which financed the construction and the development of Las Vegas, which is now one of the most important touristic spots on the US.
And in Europe it all started a long time ago and now we can say that avid gamers are the heirs of the wealthy social stratum of Ancient Greece, ancient Rome and Europe.
In these countries, the game of dice has completely captured precisely these sections of society. For obvious reasons, the working people had no time to play.
And the passion for dice among the church clergy was so significant that even the Cambrian Bishop Witold could not ban this game. And then he came up with a replacement for her. Instead of numbers on the edges of the bones, he painted the virtues in symbols.

They are details of a lot of knowledge that they provide that are actually very valuable, I did not know that I had had so many things that I had gone through, however there are many details that, when well ordered, can come out as if it were a great biography from those times to the present day. Currently, this seems interesting to me, it only occurred to me when I read all the little things that happened in those times, and it is curious that by uniting all that knowledge, such a legendary story emerges, at least it seems that way to me, this means that the trajectory of games of chance is somewhat controversial and that within this there is a lot of knowledge immersed, this is quite interesting.