Stupid question

During your period if you uterus is shedding its lining why do the cramps feel like its coming from the ovaries. Or more on the sides then directly in the middle. Sorry for the dumb question just a thought.