With one that contains sugary, fat foods, you're still getting your caloric intake, but it's made of very little nutrients, and that allows your body to store more fat and endanger your health. A diet with carbs, fats, proteins allows your body to get the most out of what your eating.
Hope this helps!