Perhaps a fourth explanation... The vast majority of teachers are female, so maybe their teaching methods are favorable to girls
That's one example but there are plenty of others.
One group of individual doing better at something does not mean the thing is favorable towards the group.
https://mitili.mit.edu/sites/default/files/project-documents...
Perhaps you could provide us with some details about how education is not biased based on sex?