Pain can trigger a sympathetic response which will cause sweating.
The question is why you are having pain. This could be from tendon or nerve
irritation. Taking breaks, making sure your keyboard is set up ergonomically, and learning some nerve and tendon gliding exercises may be helpful.