Here's the explanation Deansy surprised u had not heard it
sell someone a pup - Wiktionary
en.wiktionary.org/wiki/sell_someone_a_pupShareFrom an old swindle, where one would be sold a bag purportedly containing a piglet, but which actually contained a puppy. Compare pig in a poke.