(a) It is a reflex action, and the pathway is the reflex arc:
receptor (in the skin) → sensory neuron → spinal cord → motor neuron → effector (the leg muscle)
(b) Because the two things happen by different routes, of different lengths.
The signal that produces the movement goes only as far as the spinal cord, which sends the command straight back to the muscle. At the same time a separate signal travels up the cord to the brain, and only when it arrives and is interpreted is pain consciously felt.
The short route finishes first. The foot has moved before the brain knows anything about it.
(c) Speed, where speed is what protects you.
Thinking takes time. If every response to danger had to wait for the brain to consider it, the foot would stay on the stone — or the hand on the hot pan — for a fraction of a second longer, and the injury would be worse.
By letting the spinal cord decide, the body removes the delay from the responses where delay is most costly, and leaves the brain to be informed afterwards.