Why does a female have menstrual flow?