There’s historical precedent, too. During the Bush years, people would get called misogynists for opposing the Iraq war because the US government was allegedly going to turn Iraq into a modern liberal democracy and liberate the local women from traditionalist religious oppression. And if you didn’t think that was doable, you’d get called a racist because you’d be implying Arabs were inherently less capable of being decent people than Americans. At least that’s what I hear from people on the internet who say they’re old enough to have been aware of politics back then.
You don’t have to go back. They’re doing that regarding pulling out of Afghanistan right now.