Why was I shouting in my sleep?

Last night I woke myself up by my own voice, shouting for help standing next to the bathroom.

I have no idea if I ran to the bathroom after waking up, or if I shouted because I was dazed by a dream, or if I was in a dream.
Never had anything like this happen before.
Why was I shouting in my sleep?
Post Opinion