The sight of people lining up to spend money on a lottery with unimaginably low odds is, to some, a charming dash of whimsy in an otherwise robust economy.