Essentially, you are waking up in rapid eye
movement when your body
is paralyzed by active inhibition from your brain
but your mind is active, and eyes are moving rapidly, with dream like activity or awake consciousness
happening. Probably not something to worry about too much but consult a sleep physician if it continues or worries you.