The purpose of a quick body response is from your brain. Your brain has a nervous system that can tell you to do things that you should.
In this case, Pulling your hand away from a hot stove could be dangerous, so you nervous system quickly reacts to take your hand away from the stove.