some AC/ heat pump models pull the heat in the air and put it into water. those have existed for quite some time. look for “air to water heat pump”.
of course, there is some residual heat from the operation of the machine itself. and once the water is hot enough it will continue to release the heat into the air, but they do release way less heat into the air than regular AC units.