They've been doing this my whole life, and it drives me nuts. I used to complain that nearly every Disney movie on TV contrived some reason for men to be assholes and say something along the lines of "GIRLS can't play soccer!" Only of course to be thoroughly flummoxed by the end. It's endlessly tiring, and as you note, it inadvertently demonstrates to girls the bigotry it hopes to overcome.