Original: Even though the heat pump can heat, it still uses the same basic refrigeration cycle to do this.
Simplified: Some heat pumps use heat energy, supplied by a flame or an electric heater.