The top grandes écoles have the best math/physics students coming in. These students are obviously likely to also be the best math/physics graduates coming out.
The only way that wouldn't happen is if the grandes écoles brainwashed their students into stupidity, while Epitech and 42 had a time-distorted super saiyan training chamber.
That doesn't say much about the quality of the curriculum.