What is the X in X-mas?
late 14c., "an occurrence, incident, event," from Old French accident (12c.), from Latin accidentem (nominative accidens), present participle of accidere "happen, fall out, fall upon," from ad- "to" (see ad-) + cadere "fall" (see case (n.1)). Meaning grew from "something that happens, an event," to "something that happens by chance," then "mishap." Philosophical sense "non-essential characteristic of a thing" is late 14c. Meaning "unplanned child" is attested by 1932.
A person born from an unplanned pregnancy; an unplanned pregnancy: At 50, this third one was an accident (1900+)