ref
From do + -n't.
Depending on dialect, its use in the third-person singular may be from elision or from not using -s to mark the third-person singular at all.
don't
contraction of do not, recorded from 1630s.