HELP!? Super confused

Quick question, if birth control stops you from ovulating then how come you still get your period?? I thought periods were meant to get rid of the unfertilized egg, so if there’s no egg, why’s there still a period going on??

Edit: Thanks so much, now it makes sense lol