Permanent magnets are materials where the magnetic field is generated by the internal structure of the material itself. Both the atom's nucleus and its electrons are found inside of atoms and crystals.
Electric currents in the Earth's liquid outer core, which is made up of conductive, molten iron, are primarily responsible for producing the magnetic field. Magnetic fields are produced by current loops in the liquid iron, which is constantly moving. From a distance, the Earth seems to be a large magnet with typical north and south poles for magnets.
Some natural substances have magnetic properties. When the material developed, its field direction in relation to the Earth's field could have been fixed. Geologists have deduced that the earth's magnetic poles turn over sometimes as a result of this. So even the Earth's magnet is not unchanging!
Hence, the Earth is a magnet but is not a permanent magnet.