I have a better theory.
In many societies, the alpha usually dominates the gene pool of the next generation. In some animal and human societies, only the alpha reproduces.
If you're poor, your kids are going to be even poorer, and their kids will be even poorer, eventually leading to a genetic dead end. None of your genes will become a permanent part of posterity unless you are an alpha. In this way, it makes sense to gamble 5% of your income, which would not make a transcendental difference anyway, for a chance of attaining alpha status. From that point of view, it makes perfect sense.