This is such a terrible behavior of a dog. It mostly happens when you keep cat and dog both as a pet at the same place. It is no doubt unhealthy and bad behavior of your dog. You’ve to keep your dog away from the cat litter box.