While a fridge works by extracting the heat from the stuff you put in your fridge and heating your home with it, decreasing the load on the rest of your heating system before even accounting for the compressor inefficiencies.
Kinda like when hotels put their ice machines in some tiny room on each floor: that room gets really hot because it’s tap water in and ice out.