Part of the reason is that they were not fighting for India. The soldiers were all volunteers; soldiering was their profession, and they served the very British Empire that was oppressing their own people back home.