Pregnancy on the pill

I don't understand how people can get pregnant on the pill when I'm having a hard time getting pregnant off of the pill