Like it or not, we all have to sweat in order to maintain a regular body temperature. If your body is too hot, blood vessels open up to let more blood reach the skin, where the blood cools down. As a result, the sweat glands produce more sweat and that sweat evaporates to cool the skin. However, in some cases, sweating does not occur when the body overheats. While in some cases, the sweating does occur but it does not evaporate.
The exact cause of this excessive sweating is still unknown. It could be due to the overactivity of the 'sympathetic nervous system' that controls sweating throughout our body, which is important for regulating body temperature. Excessive sweating occurs when it sends signals to produce more sweat than is required to maintain the body temperature. The central command center that receives the signal is known as hypothalamus. Excessive sweating may also occur if hypothalamus goes wrong.
There is a misconception that excessive sweating occurs only when someone undergoes a distressful situation. However, it is true that stress, anxiety, and even exercise can contribute in worsening the condition of a hyperhidrosis sufferer.