Judge not

Is it strange that we are advised to not judge all Muslims by the actions of a few Muslims but we are encouraged to judge all gun owners by the actions of a few gun owners, usually ones that got their guns illegally?