Dogs are naturally curious animals with a strong sense of smell. They are attracted to the scent of the litter box, which marks it as the cat’s special area. Their heightened sense of smell allows them to detect unique scents from the litter box, leading to their curiosity and desire to explore.