Post-birth killing

If abortion is OK after a baby travels through the birth canal why are teenage people with vaginas charged with killing when they do this?