Ovulating on the pill?

I posted a question on here earlier about ovulation on the pill. People say that the pill prevents you from ovulating, but I’m wondering how it’s possible to get pregnant even on birth control. My mother got pregnant while she was on birth control with me even though she took them on time and never missed a pill. I’m confused?