Foods aren't unhealthy, diets are.
A lot of people look at a single food and make quickly designate that food as either healthy or unhealthy. Their definitions range the gamut. Does it have a lot of sugar or better yet added sugar? Does it have a lot of fat? Is it calorically dense while simultaneously nutrient sparse? Is it processed? Does it contain more than five ingredients? The list goes on.
If those criteria define a food as unhealthy, that would mean that if you eat it, you will be unhealthy. After all, if it's unhealthy wouldn't it, by the nature of its definition, make the person that eats it unhealthy? That doesn't seem to be the case. With the exception of individuals with medical reasons to avoid certain foods, people are able to eat those foods while maintaining a clean bill of health immediately after consumption, a day after consumption, a week after consumption, a year after consumption and even a decade after consumption.
'But if they eat enough of it, they'll be unhealthy!' you say. In a sense, that's true and leads me to my final point.
If a person eats nothing but pop tarts, his diet (the sum total of foods he consumes over a period of time) will not be healthy. The same can be said for any food, even foods that are classically seen as healthy. Take broccoli for example. No one ever claims that broccoli is an unhealthy food. It's filled with vitamins and minerals that the human body can use to help it function properly. However, a diet that consisted of nothing but broccoli would be unhealthy because it alone cannot support the human body and its needs.
It's the diet as whole that matters, the sum of its parts, not parts by themselves. It's myopic to look at single foods and put a health label on it. It's the bigger picture that has to be the focus if health is goal. A diet that satisfies the bodies needs for calories (neither too far over nor too far under), protein, carbs, fats and the vital micro nutrients is healthy whether it contains the occasional processed, sugar added chocolate chip cookie or not.
Healthy diets make healthy people, not healthy foods.