Traditional Indian society was structured around a collection of endogamous clans called jatis (birth).
The group's hereditary occupation, on which each group held a monopoly, structured the jatis and mainly defined their social standing.
The Ahiras were a jati whose ancestral profession was herding and selling milk in ancient northern Indian culture.
You may also want to read more about Hinduism here.