They practice it because those in power in those communities
- benefit from it and
- are descendants of oppressor upper castes who converted to Islam or Christianity . They changed their religion, but refuse to be civilised even though both Islam & Christianity are religions of equality.
Sikhism was created to rebel against Hindu casteism, yet nowadays we can see caste is prominent in Sikhs as well and for the same 2 reasons.