It's really not. A generalization is not de facto bigotry. I wish Americans could figure this out some day.
The grandparent (quoted above) is generalising a population as having these negative aspects and suggesting that support for the AfD is only due to these reasons. It is a form of shallow dismissal based on bigotry. It doesn't seek to understand the population and properly why support for the AfD is rising. It's much easier (for the bigot) to write off people as having entrenched negative characteristics.
And I wouldn't normally say this but if you have a browse through the grandparent's comment history, the majority of their comments are of this ilk, including one comment about 2 months back that they received a warning from dang for.