it is programmed to take your money, you can only get lucky but if you don't run away with your wins you are bound to lose it all, and you might get trapped in that constant loop of winning and losing..
The main question is when to run out.. When you are lucky enough to win from a casino, you get too enthusiastic and you can lose control. That's when all the gambling problems begin. Because when someone has had winning experience, he would always look up to it and try to repeat it. Because he already knows that it is possible. It is this feeling of opportunity that ruins many gamblers because they cannot stop.