You are right mate, if a gambling gets addicted to gambling either because of winning or losing, in one way or the gambler caused the problem for them self and this can be prevented when the person already fixed their habits or knows how to control their emotions by not allowing either of those outcome to cause gambling addiction for them. Like myself, the earlier time that I almost became addicted to gambling was because I was targeting a huge win, though I was losing but I was not chasing losses, rather I was just expecting the win to come. I didn't become addicted because I controlled the habit.
One thing is that the odds for each gambling game are carefully packaged in favor of the casino. This means that, the more you play, the more the math works against you, and the better the chances are of you walking out of the casino with less money in your wallet than when you came in..
But the ability for some to realize and walk away is the problem, rather they are engulfed with the mentality of getting all that is put in. Thereby getting trapped and overwhelmed by it.