Sugar was not readily available until relatively recently.
Fruit?
I'd put my money on a relation between abundance of food plus obesity because too high calorie intake is the main culprit of obesity.
From Wikipedia.
Sugar has been around far longer than our very recent obesity epidemic.