Of course, there were some issues with hinduism, because generally low caste people didnt keep themselves clean, ate meat, these categorisations were made.. especially because such people shouldnt enter temples after they ate meat. its a very genuine thing...
even i wouldnt let a begger enter into my house if he/she was not clean...
i think over the years, such things have become castes and the new age politicians started using it to their convenience.