Bleeding during sex?

I'm not on my period but the past few times my boyfriend and I have had sex, I've bled but then it stos when we're done. Any idea why?