My guess is that when you are that much poor, you don't just buy the chance of winning, but also a little amount of hope that helps to get through the dull (or even awful) life.
Even if you don't win you get something back for that money.
We've built an entire society on the notion that you should aspire to buy a bunch of things you'll never be able to afford. See also: luxury car repossession rates