"even though the program did not run"
Seems to have nothing to do with power off or power on - it has to do with a program running.
It could be retaining power from a charge, but the point is
is is actually running, just at a particular state. If it wasn't running at all, how would it know to answer? It doesn't have ESP built in...