Your body uses electrochemical signals to tell the muscles what to do. Your brain commands the muscle by sending it a weak electrical signal.
When you get electrocuted the current from the power supply overwhelms whatever signals your brain is trying to send and the muscles will often seize up in response.
Light is a different kind of energy, and most of your tissues aren’t very responsive to it.
Latest Answers