Original: This is because the compressor's input energy is largely converted to useful heat when in heating mode, and is discharged along with the moved heat via the condenser.
Simplified: It uses a compressor to do this.