orgasm VS. ejaculating

The other day my boyfriend and I were having sex. I was on top and I like to go fast. After a few minutes he pulled me off and then was all upset because he came but didn't orgasm..?¿ and then a few minutes later we started again and he orgasmed? Can someone explain this to me. Ive never experienced either of these things so I didn't know they could be separate?