Old English cote, fem. of cot (plural cotu) "small house, bedchamber, den" (see cottage). Applied to buildings for animals from early 15c.