Why do people have the desire to survive?
That is, there is always an idea in your subconscious that you don't live enough or die (for many things). If you really despair of the world and feel that living is meaningless, so deep that it occupies your subconscious mind, you still have a fucking desire to survive. The pain of death will make you react at best. This is just a normal reaction of muscles.