that's true but this is an expirement to see if magma can power cities
And also there will be a huge loss of heat if we pump magma from ~10 kilometers of rock deep
If we imagine, this would be a good way to generate electricity, but in practice, it would require a lot of energy to pump out the magma than a steam generator produces.
A whole new meaning of molten salt reactor