What causes your neck to sweat?

Because it gets hot, then the sweat glands send out the sweat, which causes it to cool down.