Why does food give the body energy?

It contains some sort of sugar called glucose or starch. When we eat it, the glucose or starch is released. When respiration(sugar+oxygen converted into carbon dioxide+energy+water) occurs, energy is released.