Why does your 4 month old puppy poop where you don't want her to poop?
Because you haven't housetrained her.
Here're
links to articles on housetraining from my rescue group's site.
(Yes, we know some of the links don't work, but we can't fix them because we don't own the page.)