To see a man about a dog or horse or duck is an idiom, especially British, of apology for one's imminent departure or absence, generally to euphemistically conceal one's true purpose, such as going to use the toilet or going to buy a drink.