Goatherd comes from Middle English goteherd, from Old English gāthyrde, a compound of gāt (goat) and hyrde (herder), literally meaning one who tends goats.
goatherd (English): A person who herds, tends goats