How do people get pregnant on the pill but take it perfectly?

How can someone get pregnant on the pill when they say they took it perfectly?