There are many causes of blood in the stool.
This is reason for evaluation by your primary care physician or in cases with sigificnt bleeding to get evaluated at the er. It can be from simple fissure of the anus, straining and constipation
or more seriously ulcers polyps or lessions in the intestinal tract. Untreated can be fatal or at minimum lead to significant anemia