This attitude towards dogs isn't new. There are lot of similarities between Jews and Muslims.
[article]
Judaism has a preoccupation, going back to antiquity, with cleanliness. The very common Jewish prayer Ma Tovu starts with “How lovely are your tents, O Jacob; your encampments, O Israel!” Balaam, a non-Jew, was sent to curse the Israelites, but is impressed with their tidy encampment. So the prayer starts with his words.
Dogs are, in my experience, messy, not unclean. Animals aren’t human. They as a rule don’t have the same hygiene behaviors as humans.
I suppose there is a cultural stream of, an attitude of, dogs as “unclean” in Judaism. Judaism arises out of a desert existence, a nomadic existence. This has influenced the attitudes to some extent.
[/article]