This sort of frame of reference juggling can be used to say any money is used for any purpose anywhere.
Most lottery money is earmarked for education, infrastructure improvement, etc. The effect it has on any other portion of the budget notwithstanding - it's a fact that lotteries bring in substantial amounts of income.
Yes, that's my point. Money is fungible, so the lottery is effectively just a general tax and benefits all things that are paid for by taxes, not just school children.
Not if the money is earmarked - you're making an unstated assumption that, say, if 5M is going into education, and a lottery starts up and brings in 5M more for a total of 10M, that the original 5M must be repurposed elsewhere.
That's not necessarily true in the first place, and what's more it depends on the appropriations rules in the jurisdiction.
I'm making that assumption because I saw exactly that happen in New York. The lottery money is earmarked, sure, but it simply replaces money that otherwise would have been allocated from the general fund. You could just as well earmark the lottery money for sanitation, cut the sanitation budget, and then put the money towards schools or other uses.