A keeper of the cattle or common herd of a village or parish.
The word hay means “hedge,” and this herdsman was so called
because he had “ward” of the “hedges” also. (Anglo-Saxon, heg,
hay; hege, a hedge.)
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894