It seems that it’s an older generation thing. The younger ones don’t care about caste at all but if their parents ask about their friends they will lie, because their parents care a lot about caste.
And while caste is illegal in India. It’s such a big country it’s difficult to enforce. So it’s still rampant outside of the big cities.
I used to donate to a charity which builds wells in India for small villages to ensure they have safe clean drinking water. They supply the materials but everyone in the village must contribute to building it and everyone must have access regardless of caste. If the village does not agree they won’t help.
I can’t remember what the charity was called :(