This is because as children women are punished more often and more harshly for breaking rules whereas if boys break rules, adults shrug it off and say 'boys will be boys'. Women are expected to behave perfectly by social standards and norms while is it acceptable for 'boys to be boys' and break rules and get away with it. Maybe there is something underlying the feminine-dominated education system rather than women having an inherent advantage over men?