Which also ignores that point that not all candy is bad for you, and even candy that's not necessarily good for you in quantity might be perfectly fine in moderation.
Chocolate, for example, decreases the risk of stroke, is good for your skin, improves vision, stimulates brain activity, etc. How much of and how often you eat it affects whether it's still beneficial compared to its negative effects, which include high cholesterol, diabetes, weight gain, etc.
Someone eating candy isn't necessarily doing something bad, despite the stigma. Equally, they are not doing something necessarily good.