pregnant on the pill

I just found out I'm pregnant while taking my birth control pill.. how? Y'all I'm freaking out.