It is wrongly assumed that excessive caloric intake is the root cause of obesity. A calorie of food energy has different metabolic fates depending upon the hormonal stimulation. That same calorie may be used to generate body heat or stored as body fat.
Obesity is a disease of failed energy partitioning, not one of the total energy intake. The primary driver of this partitioning is the hormone insulin. Insulin is specifically a fat storage growth hormone.