Implantation Bleeding.
This is caused, in the very early stages of pregnancy, by the egg implanting itself into the wall of the uterus. Because it occurs around the same time as you might have had your period, this makes it hard to distinguish between the two causes.
Hormonal or 'Breakthrough' Bleeding.
You might expect your pregnancy hormones to overwhelm your normal hormonal cycle but this doesn't always happen.