This question already has an answer here:
- Is Earth really a magnet? 4 answers
- Why does the Earth even have a magnetic field? [closed] 2 answers
I'm pretty sure metal loses more of its structure as it heats up and magnetic properties in a material are caused by a particular combination of atomic arrangement and orbital levels so...how does the difference in rotation of Earth's liquid inner and outer core generate any kind of magnetic field? Why wouldn't Earth's magnetic field be even stronger if those two layers were completely stationary and solid?