But in most cases, the whole point of using machine learned models is to do better than humans. Like an insurance company using ML to predict how likely a customer is to get in an accident. They aren't going to train the models to mimic actuaries, they have plenty of actual data to train it on.
And it is quite possible that males get into accidents much more often than females. But that doesn't mean the model is prejudiced or that it's wrong.