Why did he get upset that I wanted to leave after sex?

Me and this guy have a been in a situation ship (talking but not actually dating) for over 5 months now and after we had sex one day I told him I was gonna go home & he got so upset I could see it in this face. So I asked him if he wanted me to stay he said yes and just told me to lay down and cuddled me all night what does that mean? His done this 2 times now whenever I ask

Why did he get upset that I wanted to leave after sex?
Post Opinion