I don't disagree on the fact that the woman who goes to an abortion provider would let that provider know that a fetus exists inside her body. But that woman doesn't let YOU or the GOVERNMENT know. Medical consultations are considered private - you have 4th Amendment protections from unreasonable search or seizure of person, papers, etc. The only possible way the state can have an interest or power in this case is as follows.
States have the power to regulate the practice of medicine. They therefore have the right to make the medical practice of abortion illegal. However, they can't do this with all abortions, because the woman's life can be clearly threatened by pregnancy. Accordingly, states have to make an exception so that a medical professional with medical indications of the threat can perform abortion at least to save a woman's life.
At the same time, if they don't make exceptions to save the health of a woman's major organ functions, or save a fetal twin's life, or in the case of a fatal fetal anomaly or rape pregnancy, many doctors think the state law is demanding that they provide sub-standard medical care to their mature female patients.
Similarly, the federal government is still in the middle of a court case with the state of Idaho in which the federal government says that a hospital that receives any federal funding has to provide stabilizing medical care for a patient in an emergency situation (EMTALA law). If Idaho loses this case and bans abortion even when it is standard stabilizing medical care, no hospital there will be able to take Medicare or Medicaid funds.
So this isn't just about so-called elective abortions. A state's anti-abortion ban is likely to cause a woman to die, lose her future fertility, be seriously disabled, etc., if it doesn't make enough exceptions. When it does, you can be sure that people here will protest just as loudly as they did when an Irish hospital's refusal to perform an abortion to complete the incomplete miscarriage of Savita Halappanavar led to her death and a changed national abortion law called "Savita's Law" in Ireland.