Actually Ermac was a watchdog, just like the chris houlihan room in zelda: a link to the past was a watchdog to make sure the game wouldn't crash if a room didn't load properly.
In Ermac's case, he was there to ensure the game wouldn't crash if the cpu didn't load a fighter's graphics in time. from there the details are nebulous due to Ermac's rare appearances. Some say he appears during an entire round, some says he only appears for a few seconds before the graphics switch to your/the cpu's proper fighter.
in fact, the reason why Ermac is red is that to reduce costs and make palette swapping easier, the developers did the green screen process with characters wearing red costumes (like scorpion/sub-zero/reptile/ermac).
Ermac's color merely is the default non-swapped color.
So, it is safe to say Ermac IS the original ninja, and the others are the palette swaps.