Why does it hurt during a bowel movement on your cycle?

Rissa
Often times when I come on my period and have a bowel movement it hurts when trying to pass it almost like something is squeezing my ovaries or something. It's just hard and it hurts!! Does anyone else have this problem when they are on their cycle?