A hiring manager, gets two resumes. Both are equally qualified. He glances at one, see's the last name and decides on the spot to not hire him. Because of caste.
If he's slightly clever, he'll atleast schedule an initial call with the candidate before inventing a reason to reject him. How does a generic anti-discrimination law identify this as an instance of caste-based discrimination?
Btw we have other avenues, anti discrimination is one that covers shutting down labelled candidates. Nepotism is described as favoring relatives or friends, just add "or group identified with" to it and boom that covers the caste system issue (and beyond). I'm no legalist so of course I'm not drafting a clear definition of group identity but you get the idea, i hope. I suspect we are stuck on this because on some side we have identity politics and quotas advocates wanting the legislation to accommodate their wishes, hence forbidding group identified favoritism in the law. This avenue is being at best ignored as a potential simple solution, at worst battled against with teeth and nails for other unrelated motives.