sex help!!

So me and my boyfriend had sex. He pulled out in time with condom and I look up to see cum on the condom. We go to the bathroom to check for holes and it's perfectly fine no holes or anything. Im just wondering how the cum got on the outside of the condom when there's no holes and it all stayed at the top when he came. Help?!?!??