early 13c., cloystre, "a monastery or convent, a place of religious retirement or seclusion," from Old French cloistre "monastery, convent; enclosure" (12c., Modern French cloître), from Medieval Latin claustrum "portion of monastery closed off to laity," from Latin claustrum (usually in plural, claustra) "place shut in, enclosure; bar, bolt, means of shutting in," from past participle stem of claudere "to close, shut" (see close (v.)).
"The original purpose of cloisters was to afford a place in which the monks could take exercise and recreation" [Century Dictionary]. Spelling in French influenced by cloison "partition." Old English had clustor, clauster in the sense "prison, lock, barrier," directly from Latin, and compare, from the same source, Dutch klooster, German Kloster, Polish klasztor.
From c. 1300 in English as "covered walk running round the walls of a monastic building or large church;" from late 14c. in the general sense "colonnade round an open court."
"confine in a cloister or convent," c. 1400 (implied in cloistered), from cloister (n.). Figurative use, "shut up in retirement from the world," is from c. 1600. Related: Cloistered; cloistering.