Every birth control pill works two ways, the hormones trick into not ovulating and they have a backup, if you do ovulate and concieve a child, the child is prevented from implanting and growing, thus you have a spontaneous miscarriage - aka - abortion.
Look on the insert paper that comes with any of them, it tells you this.