Why do I get diarrhea when I have my period?

Does anybody know why I get diarrhea when I’m about to start my period! It’s been a burning question of mine since forever! Thank you ladies!😘