thirteen (n.) Look up thirteen at Dictionary.com
early 15c., metathesis of Old English þreotene (Mercian), þreotiene (West Saxon), from þreo "three" (see three) + -tene (see -teen). Cf. Old Frisian thretten, Dutch dertien, German dreizehn.

Not an unlucky number in medieval England, but associated rather with the customary "extra item" (e.g. baker's dozen). Superstitions began with association with the Last Supper, and the unluckiness of 13 sitting down together to dine (attested from 1690s). Most of the modern superstitions (buildings with floor "12-A," etc.) have developed since 1890.