Intercourse after period

I just ended my period last night and had intercourse today. After intercourse I began bleeding again. It happened another time as well. It will last a few hours and then go away. 
Any idea why this may happen?