Yep.
My explanation is that Hollywood (and prestige TV) scriptwriters / directors are all people whose personal experience of logic, science and maths at school was of absolute soul-crushing torture, and so they honestly believe that the only people who could love STEM subjects must be tortured, soul-crushed people.
It's not a charitable explanation, but it fits the observed facts.
If true, this has very bad implications for American education and media.