The fat comes from the highly dense energy stored in the bonds between those carbon, hydrogen, and oxygen atoms.
Small correction: the energy comes from the bonds...not the fat. The fat comes later.