Fecal incontinence, also called anal incontinence, is a term used when bowel movements cannot be controlled. Stool (feces/waste) leaks out the rectum at unwanted times. Depending on the cause, treatment can include one or more of these approaches: dietary changes, bowel training, medications, or surgery.
https://my.clevelandclinic.org/health/diseases/14574-fecal-bowel-incontinence