Why should students who fail their classes retain and have to repeat a grade?

so they can improve and practice more if they are struggling in their work and if they are repeating their grade