They explain in the article that pumpkins are used because they share a similar shape and structure as well as water ratio as a human head. They got the magnet from previous research efforts from a research team dedicated to that domain (part of the french research around nuclear and alternative energies). Instead of trashing the 130t magnet, they proposed to adapt it for medical imagery. It will know help research on the Alzheimer disease.
https://www.francetvinfo.fr/sante/decouverte-scientifique/sc...
Edit: format