I’m not saying that racism or sexism doesn’t happen. But I am saying I see how a person can also take something as racist or sexist just because it’s something you’re told to expect.
(That's a relative comparison)
Perhaps you've had someone innocently comment about how nice it is to see a woman in engineering since there are so few? Maybe that doesn't bother you at all. But what if you get that comment constantly, several times a week for you entire career? I suspect it would start to weigh on you and you would become quite exhausted by it. You might even start feeling that you don't belong. Or maybe wonder if your gender is the only thing people notice about you.
Then also imagine that we all wore name tags that identified your career. And now you can't even escape it when you are not at work, you get it at the checkout line too. And from your waiter, etc, etc.