Obesity is not simply a result of poor eating.
Obesity is primarily a problem of diet though, especially in children.

Treating symptoms without getting to the root cause will not have much success, in the long run.
...The root causes are a combination of poor diet and a sedentary lifestyle.