Muslim invaders succeeded in their invasion of North India because they had mounted archers that had greater mobility than Hindu forces which give them greater advantage on the war that located on the North India Terrain.
Not only that, back then, many princes in that region were involved in civil war, which weaken the might of indian army as a whole.