When people can see all around them that gender, nationality, race, and religion convey useful information about the people they meet, and they live under the rule of an elite which claims that these things are irrelevant, then when some demagogue or other comes along who acknowledges the truth about these things but who lies everything else, people are going to go running into the arms of that demagogue.
Had these people advocated a fair and humane acknowledgement of these obvious, day-to-day truths instead of adopted a posture of absolute denial of the obvious, we wouldn't have Trump in the US and Brexit across the Atlantic.