Then, in your opinion, what qualifies as a bad diet? You just removed the two biggest factors.
Sugar and salt are inexpensive ingredients that make highly processed foods more appealing, often leading to over-consumption. This not only displaces more nutritious options but also contributes to their negative reputation and, over time, they have come to be seen as unhealthy in any amount. Sugar, in particular, is sometimes portrayed almost as a poison.