What does a permanent magnet do without electricity or another magnet nearby?
It keeps its magnetism.