How can you be pregnant and still get a period?

Implantation bleed. Up to 30% of pregnant women will bleed at the time of their expected periods because the baby as implanted into the womb. This gives the impression of a period when it's not.