When my state was debating creating a state-run lottery to fund education projects, my preacher gave a sermon on the evils of gambling. Religions can't realistically stay out of politics because every law can be reinterpreted as a moral argument.
That's fine. It's different when it's telling people how to vote.
Some people buy lottery tickets specifically because of who they benefit, which is very different than going to Vegas or certain forms of investment. (IE, uneducated investment is often just gambling.)