I guess the idea is that by feeding bad data they can do the equivalent of implanting bad thoughts in someone.
Think of it this way, if your parents raised you racist you would probably think racist thoughts until you learned enough perspective
Noticing differences in people is natural and starts at an early age. I observed this in my own children. However, what we identify as racism and sexism is learned behavior. It emanates from stereotyping, prejudice, and bias.
I believe that's exactly what the parent was implying.
Stereotyping, prejudice and bias are natural behavior and are observed even in children. Whether the specifics of racism, at most, are learned or not is somewhat immaterial-- as for sexism, there's even less ambiguity about it being deeply rooted in human nature somehow in a way that's very hard to change - it certainly isn't our "societal structures" telling kids that females have cooties.
Curious example, for me personally it was the opposite