Sugar and fats are both compounds present in nature, and evolution hardwired us to search them out as high calorie sources. Modern food processing has drastically lowered the cost/increased availability of those substances, allowing individuals and companies to increase the amount included in prepared/processed food. Oils are necessary to life and sugars aren't, is the only difference really. Eat food, mostly plants, not too much.