There ae all kinds of statistical correlations we can find between some sort of dangerous undesirable behaviour, and a demographic fact.
What race commits the most violent crime? White collar crime? Petty theft?
What religion is most likely to engage in terrorism?
Yet in no cases do we consider it acceptable to prevent these behaviours by simply banning the whole group from certain activities.
We even say it is wrong to profile people and pick them out as at elevated risks because of these things. We tend to be critical when we hear about Muslim men being targeted for extra precautions at an airport, for example.
The idea that elevated risk in a group makes it ok to discriminate against individuals is generally seen as wrong.
It's just statistics? yes, t's just statistics. It works, the statistical analysis for it works. If the drug trade in a particular town is run mainly by a particular ethnic group, using that as part of your analysis, pulling over those cars with those particular drivers, searching those particular passengers etc, it increases your chances of finding the right people.
But that's usually seen as problematic to say the least.