Why magnets have magnetic force, is the earth because of rotation and its magnetic field and current will continue to be strong, eventually the entire Earth becomes a large magnetic field. The Earth's minerals, such as nickel, cobalt and iron, are turned into natural magnets because of the rotation of the earth.
We all know that there is a gravitational field between matter. Similar to the magnetic field, is a field filled with space around the magnetic poles. The size of the magnetic field can be represented by the number of imaginary magnetic lines, and the more densely the magnetic field is, the weaker the magnetic field will be.