When we get scared suddenly, a chemical called adrenalin is released into the body. It takes time to calm down because the chemical has to work its way through the body before it goes away. Adrenalin is known as the 'fight or flight' reaction. It is a natural reaction and puts our bodies on alert for possible danger.
Hope that answers your question.