Bleeding during sex?

My boyfriend and I were having sex and afterwards I noticed there was blood, not a little, but like a lot. Kinda like I started my period. But my period ended 2 weeks ago. I’ve had sex previously and there’s never been blood. Any ideas on what and why that happened ?