"hindmost part," c. 1600, abstracted from rerewarde "rear guard, hindmost part of an army or fleet" (mid-14c.), from Anglo-French rerewarde, Old French rieregarde, from Old French adverb riere "behind" (from Latin retro "back, behind;" see retro-) + Old French garde "guardian" (see guard (n.)). Or the word may be a shortened form of arrear (see arrears).
As a euphemism for "buttocks" it is attested from 1796. Rear admiral is first attested 1580s, apparently so called from ranking "behind" an admiral proper. Rear-view (mirror) is recorded from 1926.