You know that's an interesting thought. That its not the quality of the education, but the quality of the student. Similar to how prestigious schools do better just because they filter for better students.
This is the dark truth about education that no one likes to talk about. It's almost all about what happens in the home. What happens at school is irrelevant by comparison.