Because the center is gaseous and the poles are magnetic?
The earth’s core is not gaseous.
https://www.space.com/17777-what-is-earth-made-of.html