Physics certainly has an answer. I guess the law of conservation of energy? The heat energy of the pipes under the styrofoam holder of the bathtub also goes somewhere. Whether now into the concrete ceiling / the screed or somewhere else - the energy stays in the house.
With styrofoam under and above the pipes, the energy primarily stays in the water and ends up in the return flow.
The main problem, as mentioned, is that the 30m of pipe under the tub obstruct the flow.
So they give off no/almost no heat, but reduce the flow in the entire circuit and thus the performance of this circuit.
And one more thing could be considered: With controlled residential ventilation, the heat is distributed again in the house...
The effect is extremely small
And ideally you have a photovoltaic system that reduces energy costs during the cold months...
Yeah, you should have a photovoltaic system, but especially when the heat pump really has to work hard, usually nothing comes from the roof.