When dogs smell other dogs' bums, it's their version of a handshake.
Dogs have “anal sacs” which release chemicals providing a whole host of information for dogs to smell. With their incredible noses, they can determine the gender, diet, health, and even emotional status of the dog.