Can someone help me please

I was bleeding for 11 days straight before my period on the 12th day I started my period as I was supposed to (on BC pills been on it for a couple of years never had done this) my period lasted a week as usual and all bleeding as completely stopped now does anyone know why I was bleeding before my period ? So I was bleeding for 18 days straight ...