Nature refuses to move heat from cold to hot, yet your fridge forces this impossible flow using mechanical work.
The coefficient of performance quantifies how much thermal energy we move per unit of electrical work consumed by the compressor.
Compressing the refrigerant gas raises its temperature, allowing it to dump heat outside before expanding to steal cold inside.