If you push a stone up a hill, then some of the calories you burned went into the gravitational potential energy of the stone, and some up it was lost as heat.
If you compute the SHA hash of some string, then some of of the energy from the power supply went into switching the voltages in transistors, and some of it was lost as heat.