Why Do Credit Cards Have Magnetic Stripe On The Back?

Why Do Credit Cards Have Magnetic Stripe On The Back? A stripe on the back contains the data embedded in iron particles in plastic film. An electronic reader is swiped through a slot. The reader decodes the embedded data and approves (or denies) the transaction or access that is being attempted. What does the magnetic