You could sweat if you are nervous, scared or panic for any reason.
There are several medical reasons for sweating too and these need to be seen by a doctor.
A heart attack could be associated with sweating.
If your blood sugar is low (hypoglycemia) you could start sweating.
You could also sweat if you have a thyroid problem.