1670s, lit. "inattentively," hence "unintentionally;" see inadvertent.
inadvertent
1650s, ultimately from inadvertence (1560s), from Scholastic L. inadvertentia, from in- "not" + advertentia, from L. advertere "to direct one's attention to," lit. "to turn toward" (see advertise).