Money is one of the biggest for sure.
Also, the underrepresentation plays a role, too. For example, black people are still breaking barriers in the STEM field. That aids to the reluctance in teaching STEM.
In 2021, I put 65 applications into meteorology and data science jobs (mostly private sectors). I did not get a single interview with a person of color. They were either white men or foreigners. So when we do get into the field, we become part of barrier breaking. We are then tasked to find ways gain more interest for young black minds while trying to maintain a career in said field.
We likely don’t come back to teacher until after the fact. We need to redefine how Black Americans see teaching as a profession in STEM. This including research as well.