3 possibles.
1 The switch or cable on the heater is defective
2 You left the switch in the ON position when you unplugged/moved/replugged the heater
3 Person(s) known or unknown switched it on, noticed after a while the nasty smell and possibly smoke from the plug, switched it off and are now...