A good amount of useful energy is wasted as heat in various machine parts. Why?
Because of friction.
We know that various parts of the machine are not smooth and due to the friction between them, heat is generated. Hence, a good amount of useful energy is wasted as heat in various parts of the machine.