Initially, a virgin birth, also known as parthenogenesis, was thought to be triggered by extreme situations; it was only documented among captive animals, for example, perhaps by the stress, or isolation. A way to continue the bloodline when all other options had gone, when there was no other choice.
Not necessarily. It now appears that some virgin females produce offspring even in the presence of males.