For me the reason is obvious, school is perhaps the one field in life where the sexist upbringing of girls gives them a slight advantage because they are raised to be pleasing and responsible.
I can definitely see where that reasoning is coming from. It would be interesting to cross reference school performance against a survey of gendered parental attitudes regarding classroom behavior and to see if there have been shifts over time.