You are proving my point.
Banning abortion is no less, or no more, of a compromise than legalizing abortion until the moment of birth (legal where I live). In both cases, the law draws a solid line as to when during a pregnancy the state has an interest in the decision. Where the line should be drawn depends on whom you ask. Since there is no objective answer, why someone draws it where they do is irrelevant. To be sure, many people who believe in a total ban may do so because of religious belief. But that is no less a justification for their position than another person’s belief that there is no moral, religious or legal basis for preventing the pregnant person from doing whatever they wish at any time.
The core issue is, at what point does a growing fetus cross the threshold where it enjoys the constitutional right to life and therefore state protection against its destruction. The answer is always arbitrary simply because a definitive one is impossible. The lack of consensus on the issue after decades of debate by politicians, physicians and religious leaders illustrates the indeterminate nature of the problem.
According to Gallup's May 2024 update on Americans' abortion views, 35% believe abortion should be legal "under any circumstances," 50% say it should be legal “only under certain circumstances,” and 12% say it should be “illegal in all circumstances.”
Allowing extremist views on either side of the issue to control legality, ignores the majority of people who believe that drawing the line somewhere in the middle is the best that fallible humans can do.