Some people always get this wrong, not everything is relating to a spiritual issue especially gambling, it's more relating to a mental issue than something spiritual for instance you shouldn't be referring an addicted gambler to the church or spiritual home for prayers, rather such cases should be handled by a mental health practitioner, psychologist or the rightful professionals to handle the situation, your spiritual leader or teacher is just a religious leader meant to handle spiritual cases and not the right one to handle such cases, I don't know about other societies but I've seen people in my region make such errors and it needs to be addressed.
Gambling addiction is not related to spiritual matters. I think those who relate gambling addiction to spiritual matters are still under a lot of misunderstanding. Those who have not yet developed the conscience of civilization may think like this. In my country too, there is a group of people who are not very educated, if you think about it, they are uneducated, they think like this. Gambling addiction is created from within themselves and gambling addiction can be dealt with through their own efforts and the efforts of family friends and elders. Moreover, it is never possible to cure gambling addiction by taking vows in churches and temples unless it is corrected from within ourselves. Relating gambling addiction to spiritual beliefs is like complete blind faith.