A dachshund is half a dog high and two dogs long, so they are built right for attacking animals that live in holes.
I have also read about their being used for turning spits on which large roasts were being cooked. Not sure what the rig looked like, or what the incentive was to have the dachshund cooperate, yet keep it from eating more than its share.