The main value one receives from buying a lottery ticket is not the statistical expected value of return on investment, but the sense of hope for a better life that you get when you but the ticket. This hope is much more valuable for someone struggling with poverty than for someone who's relatively well off.
Therefore, it's perfectly rational for poor people to put a higher dollar value on a lottery ticket.