Old English in (prep.) "in, into, upon, on, at, among; about, during;" inne (adv.) "within, inside," from Proto-Germanic *in (cf. Old Frisian, Dutch, German, Gothic in, Old Norse i), from PIE *en "in" (cf. Greek en, Latin in "in, into," Old Irish in, Welsh yn-, Old Church Slavonic on-). As an adjective from 1590s.
The forms merged in Middle English. Modern sense distinction between in and on is from later Middle English. Sense of "holding power" (the in party) first recorded c.1600; that of "exclusive" (the in-crowd, an