Jane Villanueva got pregnant due to accidental artificial insemination.
Here's a more detailed explanation:
Jane, a 23-year-old virgin, went to her gynecologist for a routine appointment. Unbeknownst to her, her doctor was going through a difficult personal situation. Due to a mix-up, Jane was mistakenly artificially inseminated with the sperm of Rafael Solano, the clinic owner and a cancer survivor who had previously banked his sperm. This accidental insemination is what led to her pregnancy. She was dating Michael Cordero at the time.