Sex pain

Me and my boyfriend had sex for the first time last weekend after prom and it was a little painful in my lower abdomen and he kept going for multiple rounds until I finally told him I wanted to stop. He respected my decision but why did that happen ?