MELYNDAB - I think that all this comes because we do not understand the functions of dream and dreaming. I believe that you did it to yourself while asleep. I know that must sound like nonsense to you, but if you understood that we are really split in two - the conscious self and the unconscious self. You were probably punishing and frightening yourself - why you will need to find out.
But please read
http://dreamhawk.com/dream-encyclopedia/what-we-need-to-remember-about-us/ and read it till you understand, because it will help you understand that we all make movements while asleep, and they are purely spontaneous.
Here is a dream sent me today - Hi,
I started making only a few movements during my sleep, now it is effecting my sleep. I wake myself up trying to find the edge of the newspaper, I was separating my partners fingers ( not sure what I was doing) If I dream I am working in a factory I go through the motions. My arms and legs etc. get very tired. Is ther a way to stop this.
Thank You,
Tony