That... is what they do with the lotteries, actually. A portion of the cost for each ticket or earned interest on the fund pools goes to some kind of fund in each state that participates, usually towards education.
The problem is that the states don't either match the funds for those progams or just rely entirely on the lottery to fund those programs.
Moral of the story: Vote for better state lawmakers.