Something you ate?
It sounds like you passed something that was not digested, possibly a pill or something swallowed whole.
Watch your stool for any other abnormalities, especially blood or black tarry stool. If there is a family history of colon cancer
, you need to let your doctor know.