If we eat more food than the body needs. Then exercise may be the body metabolism. But If you eat more than your body needs, but also do not exercise, your body will not burn fat in the body.
So fat will accumulate more to make overweight and obesity.