It's only a mystery if you ignore the ample writing and research on the topic. Most people don't want to be somewhere they're not wanted. This also impacts men in fields they don't dominate like nursing and K-12 education, so it's got nothing to do with stereotypes about how different gender assignments cope with adversity (the usual thing wheeled out to explain it).