Other causes of fecal incontinence can include an abscess or infection of the anal glands, a dietary issue, medications, or a perianal fistula.
Your dog or cat may also poop while walking without knowing she's doing it.
It can also happen during sleep.