It is the twitches of neurons without a greater brain.
That's the part that freaks me out though. The fundamental architecture is there. It doesn't have a purpose, but I keep feeling the word "YET" clutching to the end of that statement.
I wonder what the electrical signals of the first proto-nerve cells looked like in early multi-cellular organisms.