Keepers are used to prevent
Magnets become weaker with time (due to 'free' poles) near the ends repelling each other and upsetting alignment of tiny magnets. To prevent this, bar magnets are stored in pairs with unlike poles opposite and pieces of soft iron called "keepers" across the ends.