A refrigerator is able to cool items by absorbing heat from them and sending it outside, on the other hand a heat pump does the exact opposite. It takes heat from outside and uses it to heat the water. In this manner, it is able to transfer heat instead of initiating it. In general, a heat pump can deliver hot water 4-5 times more efficiently than regular water heaters.