Heat pumps move heat from one place to another. They pump the heat. That is how they achieve 300% returns, they move 300% of the heat energy that they consume to operate.
But that heat isn’t free. It has to be produced somewhere. You must “consume” the heat to produce electricity.
If you tried to generate power in the way you postulated, you would ignore the 300% number and instead look at the conversion rate between the energy it takes to produce that heat and the energy output.