Pets sniff each other as a way to gather information about the other animal. They can learn about the other animal's gender, reproductive status, and even their overall health through scent. Sniffing each other is a common behavior among animals that helps them communicate and gather important information about their surroundings.