The air conditioner has a condenser and a heat exchanger for cooling condensed refrigerant to ambient temperatures by dismissing heat.
It gets located outside as it is loud and hot.
The compacted and chilled refrigerant expands in the HVAC system, cooling the indoor environment for circulation, so it is situated indoors.