Ovulation pain on pill???

Je

So I've been on the pill for two months now. Right now I'm in the middle of my cycle and getting ovulation pains and I'm so confused as to how that's even possible. Has it just not been long enough?? Should I be switching BC?? Because I was under the impression that bodies didn't ovulate on the pill...