c. 1200, from Old English be sidan
"by the side of" (only as two words), from be-
dative of side
(n.). By 1200 as one word and used as both adverb and preposition. The alternative Middle English meaning "outside" is preserved in beside oneself
"out of one's wits" (late 15c.).