The condenser pumps the refrigerant back and forth between the indoor coil and the outdoor coil. In the summer, heat is transferred from inside to outside.
That how ductless mini splits work - by transferring heat from one part of the system to the other.
Refrigerant flows between the evaporator (indoor) and condenser (outdoor) absorbing heat when it's converted from liquid to gas. When the liquid is evaporated into a gas, that stored heat is transferred to that part of the system.