Blood in stool and pain near anus. (Graphic- Images )

Hello I have blood in stool and pain near anus. I have attached images. Why is this?

image

image

image