What is the main reason the chemical energy of a fuel is never entirely converted to mechanical energy in an engine?

A) Some of the energy is lost as heat.
B) Some of the energy is converted to mass.
C) Some of the energy gets used for cooling the engine.
D) Some of the energy flows into shaft to increase its rotational speed.