The story
From do + -n't. Depending on dialect, its use in the third-person singular may be from elision (in these dialects does is used when not in the negative) or from not using -s to mark the third-person singular at all.
Etymology from Wiktionary, CC BY-SA 4.0.