This sense of the word comes from deliver meaning "to set free, liberate, release, rescue, save" as in "deliver us from evil". Hellymedic makes the point above that "pregnancy is a parlous state and the labouring woman is safely delivered of the infant who threatens her existence".