If the bloody stool is bright red, then it could be due to hemorrhoids or anal fissures. The causes of bloody stool that is more maroon in color is intestinal polyps, inflammatory bowel disease or diverticulosis (diverticulosis causes significant bleeding).
Please consult a gastroenterologist and get evaluated for these causes.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.