A split unit air to water heat pump water heater. Similar to how a refrigerator extracts heat from its interior, they extract heat from the outside air.
They use the same refrigeration principles as other heat pumps in this fashion; nevertheless, an air source heat pump is the closest relative of a heat pump.