The very first thing happen with the every gambler including me is started with the reason to escape worry, trouble, boredom, loneliness and grief or lose all of it in every moment when you try for gambling. Most of the people come out of the habit of gambling which the started. But few people addict of gambling.
While winning can make you feel better during hard times, losses can depress you further.
It's a gamble to gamble during depression and hard times. I would rather not take this gamble and do something safer to drive away my agony/mental pain.
As for boredom, as far as you're gambling what you're ready to loose, you will always drive away boredom, its a great way to deal with it if you are into gambling. I still find myself betting faucets/ playing poker with game money just to pass some time.