The source could also simply be the ground. With a heat pump the water doesn't have to be hot to provide heat to a building. The difference with the system Nordic countries have is that they provide hot water to residences which is directly used for heating.