Each caste would preserve its  purity  by avoiding intermarriage and not sharing food with other castes.
Castes chose not to share their food with other castes.