Even in moderation. Higher lipid levels from drinking and stress anxiety from gambling cause physical harm, not to mention mental harm.
Someone could be out on the street homeless in a few weeks by losing all their money gambling. In that same time they could consume junk food every day and still function normally in life. Someone out of the influence of alcohol could kill somebody driving or with their bare hands due to the impairment.
They do not belong in the same category but we can agree that they are vices for human beings