The reason to keep the legal system out of it is because there are a million things that can go wrong in pregnancies and child birth, and the doctor does not need the added complication of having to think about legal liability in the heat of the moment.
Women make a tremendous sacrifice when choosing to bear children. The issue of abortion is sufficiently handled between the pregnant mother and doctors.
https://www.motherjones.com/kevin-drum/2019/04/raw-data-abor...