It's all to do with a dog's remarkable sense of smell. Having a thin coating of mucus on its nose means that scent particles will be captured there.