What is under the slot car hat helps it stay on the track?

Slot cars use magnets that help hold the cars on the track