You're thinking of serfdom, which is quite different than slavery and also the indian caste system.
O right serfdom, can't believe forgot that name after all that civ playing. Well yeah it is different, but there are clear connections. You are born into your caste and you are born into serfdom. If you fled serfdom you were hunted down, just like if you fled slavery.