But solving PoW puzzle to mine bitcoin is also useful work in the sense that it adds one coin to the economy, which is why miners are rewarded for it.