Ironically in high schools girls far outperform boys in general in math and science.
I think girls just don’t think a “job” in a STEM field sounds very appealing to them. There are a lot more “geeky” guys than girls and that is who is most drawn to STEM as a career.
That may have meant something in the past. Now, I think it says more about high school than it does about boys and girls.