First, the idealogical viewpoints of a politician come from most of the voters he represents. Second, these voters don't think gambling is a part of freedom to have, but a vice to avoid.
Good point about the economic gain for legal online gambling, but the US bleeds so much money each year, which is not even funny (look at the debt ceiling debate), the politicians could not care less about the peanut money possibly gained from legalizing it.