Unclear. Probably from demonstrative *sa + an unclear suffix, possibly an earlier *-no or *-ne. But it could also continue Proto-Indo-European *tóm, whence also Latin tum.
*þan