It's possible to swallow something indigestible that then comes out in poop - sometimes this could cause bleeding. If you have anything inserted in your anus for any reason this could also cause bleeding.
Say someone recently had a colonoscopy and the doctor told them they had hemorrhoids.
If someone stabbed you in the rectum, the bleeding is explained. You should still probably get it looked at.