I don't know but it drives me nuts, too!! I'll put them in the dog run and close the doggie door so they have to stay outside, and they'll come inside and poop!!!
Last week after getting a haircut and spending an hour in the park Dublin came inside and promptly pooped behind the table in the kitchen!! URRRRGGGGHHHH!!!
My hubby says that's why God made them so cute....