Butt sniffing means to stick your nose into someone's anus. It is not clear what people gain from that.
See scat for related information.