First, take a gas, let that gas expand, it gets cold because that's what gases do when you let them expand. Now add heat from inside to the cold gas and move the gas outside. Once outside compress the gas, it gets hot because that's what gases do when you compress them. Remove the heat from the gas and leave it outside. Send the gas back inside and repeat.
We hope you find this bit of trivia interesting and just want to remind you that having an air conditioning company that understands the science behind the equipment makes a big difference when it comes to proper installation, maintenance, diagnosis and repair.