And while heat pumps are transferring energy, there is loss due to inefficiencies. If you're trying to transfer heat from inside to outside, especially when outside is hotter than inside (like in almost every AC scenario), you need to spend energy to compress a refrigerant, cool it, move it inside (meanwhile it's gaining heat during the entire transfer process) and then use it. Also, components like the compressor and radiator fan aren't 100% efficient, and will be giving off heat.