It was used to recognise the value of people (High and Low) and gave opportunities and respect to the high class people and not to the low class. Anyways, this was not a good idea as it discriminated people. In present India, caste system is not used as it causes Inequality.
Hope it Helped!