Various factors can cause bloody stool in dogs, including dietary indiscretions, infections (bacterial, parasitic, viral), inflammatory conditions (such as colitis or inflammatory bowel disease), trauma or injury, medications, toxins, and systemic illnesses like kidney or liver disease or cancer.