Why are dogs considered dirty in Islam?

This is the rule of Allah, only He knows why He made them najis. There are Hadith about the dog, but they do not provide any reasoning why the rule is as it is