People like to say this because it's a nice sound-bite that lets people feel like they themselves are not among the stupid.
It ignores the reality that poverty is a causative agent for lacking the appropriate math skill to recognize that playing the lottery is not a good financial choice, and self-perpetuates that poverty.