It could be because making you feel sick, makes you more likely to stay at home (or close to home), or otherwise take less risks and strain, which makes you less likely to die, and also encourages more care and support from your tribe, all making you more likely to bring the baby to term in a way that faithfully expresses all its genetic material.