Capacity and self-efficacy
Girls get better grades overall and also get better grades in STEM. However, they evaluate their achievement modestly. Boys, however, get worse grades but are not as demanding on themselves. This situation is reinforced by the teacher’s messages, for example, that girls get good grades because they work hard, and praising the “talent” of boys stressing that they get good grades without working hard (not proven, but suspected).