Originally posted by ScreamPaste
That's called dissociation, and I suggest you see a doctor of some sort if it happens regularly.
It actually happens regularly to pretty much everyone, and isn't necessarily harmful. Most of the time it's simply your brain going on autopilot and doing things without you really thinking about it at all.