Anxiety: Dogs with anxiety problemsnamely separation anxietymay poop inside the house when they are feeling stressed. When under duress, many dogs are unable to control their urge to urinate or defecate, leading even the best house-trained pup to have accidents indoors.