The reader inputs the data from the magstripe as audio data. The data on the stripe can be interpreted as audio data, and it is, piped in via the microphone part of the TRRS connector on the reader, just like your headset.
I believe it plugs into the audio jack. The device captures a swipe as audio data as if it were a microphone and the software interprets the audio as magnetic stripe data.