As someone who went to NYC public school where all food options are extremely unhealthy, I can say that this has mostly to do with culture.
Eastern European immigrants stayed thin. Chinese immigrants stayed thin. Immigrants from some other countries - mostly south america in my personal experience - all gained weight quickly.
The food does make it much easier to gain weight.