Oh boy, if you want an honest answer to the whys and hows of the obesity epidemic, well, the truth is "it's complicated".
You'd be surprised at how much of it stems from government policy.
In their drive to subsidize the milk and dairy industry, the feds partnered with food companies to figure out ways to stick cheese in fucking EVERYTHING. To the point where feds embedded at pizza joints co-developed the idea of stuffed crust pizza.
"To help sell its surplus in the 1990s, the National Dairy Promotion Board created Dairy Management Incorporated, a semi-public marketing branch of the USDA funded through government “checkoff” fees from dairy producers. This agency gave us the “Got Milk?” campaign and a host of popular fast food menu items, including Domino’s seven-cheese pizzas and Taco Bell’s very cheesy Quesalupa. A 2017 Bloomberg Businessweek investigation called the group of chemists and nutritionists the “Illuminati of cheese.” “The checkoff [program] puts DMI’s agents inside Burger King, Domino’s, McDonald’s, Pizza Hut, and Wendy’s, where they’re privy to each restaurant chain’s most closely guarded trade secrets,” writes Clint Rainey."
But that's just one angle on the problem, another is the rapid increase in the use of high fructose corn syrup, not just as a sugar replacement, but as an addition to, again, fucking everything.
In the drive for "low fat" foods, producers started adding HFCS to enhance the flavor that was lacking in low fat products.
And, again, federal subsidies for the corn industry is where a lot of this is coming from:
https://www.mountsinai.org/files/ISMMS/Assets/Media/Profiles/MS_OpEd%20Ad_Obesity_final.pdf
"Consumption of HFCS has increased tenfold since 1974."
Subsidies like this also drove the federal dietary guidelines rather than actual nutrition. When I was a kid they talked about the "4-4-3-2" plan. Every day, 4 servings of meat or dairy, 4 servings of fruit, 3 servings of vegetables, 2 servings of starch.
That was later replaced by the "Food Pyramid", and TBH, I have no idea what it is now.
And don't even get me started on things like "food deserts", we'll be here all day: