As Ziddina said, the body naturally aborts embryos.
It is common in nature for the zygote not to attach to the uterine wall and hence not form into a baby, when conditions are not optimal. The day after pill mimics this process to prevent the zygote from attaching to the uterine wall.