This could be an instinctive behavior when your Beagle approaches other dogs in his "pack", perhaps he is searching for a scent of what they have eaten, of, what they might have found and picked up, I am just guessing off the top of my head .