It is sometimes because of that, it mostly happens if you don't get enough satisfaction from your partner or you don't have a good connection with your family so people feel depressed and they end up gambling as they win for a while but as they start losing they keep getting addicted to gambling