Why is it that some animals are najis, and some aren’t? Specifically dogs? How are they more najis than cats?

These rulings are deducted from the narrations of Ahlulbayt (a.s).