I don’t know why studies suggest that boys are often better at correctly estimating (or maybe overestimating?) their skill level, but there’s lots of potential reasons aside from “biology” and “bad study”. Perhaps boys are just told “fake it til you make it” more often, and do so. Perhaps girls focus more on grades than boys in school for whatever reason, and the grading system is just set up to demoralise people in general. There’s a hundred thousand possible explanations - but they’re irrelevant to the point being made that if this is happening, then in order to encourage people who already believe these things about themselves to apply for a job, thinking about how to change your job posting to fit people with those beliefs is a good idea.