Boyfriend pee'd in me

So my boyfriend though he was about to cum and ended up peeing inside me. I thought this was impossible but it looked like pee, there was a lot of it and was yellow. Can anyone explain??