The point is, women are free to abort unborn children. They're not free to let their (born) children die (of neglect). It's not an obvious choice whether they should be free to not vaccinate their children or not.
I mean, it really is. Not vaccinate can lead to death, not always but it massively increases the risk to the point that I consider it neglect. Just as a child left on the street may survive, it doesn't stop the path that put that child on the street being termed "neglect".
How can you be for bodily agency and also be in favor of forcing people to get vaccines?
No value is absolute. Trolley problem and all that (Judith Jarvis Thomson phrased the trolley problem as an organ transplant case it so happens). The potential destruction wrought by an unvaccinated child is deadly enough it overrides the individual bodily agency. By taking away the bodily agency of one child you are potentially saving several living, actual humans. When you take away the bodily agency of one woman, you are potentially saving the life of an unborn person at best. This doesn't compare favorably. Also, beyond bodily agency we need to weigh all effects of forcing a decision and forcing vaccinations have an extremely low chance of causing harm to the child being vaccinated whereas banning abortions have an extremely high chance of causing harm to the woman.
(Yes, I’m aware this is due to herd immunity. I’m not talking about hypothetical situations where the majority of people do not voluntarily get vaccinated)