To the contrary, it's pro-democratic. In a healthy democracy, people should be able to vote to create the kind of society they want. That includes being able to exclude, through their government, outsiders who don't share their values.
Next up, in a society you should make sure that people you want to exclude have to drink from certain water fountains, can’t be in the same pool and go to separate schools…