Gambling is also sometimes considered a tax on the poor. But my point is it can be easier to levy a vice tax than raise income taxes for example.
AND with vices people will do them regardless so maybe some social good is better than no good coming from it.