I think besides requiring an exam to get entrance into the schools, it's a sense of pride that helps to push the students to excel. They're in that school because they're smart, so they work to uphold that image.
In regular schools, I assume, that they don't have the extra pressure (and pride) that motivates them. That motivation would have to come from within the students themselves, their parents/family/friends, and their teachers and role models.