The original reason for heavy sweating could have been due to expelling excess salt, due to a consistant diet of seaweed and seafood. This would have been millions of years ago, before man learnt to walk upright and headed for the plains. Only afterwards did evolution respond with heavy sweating in response to high temperature. Or perhaps it was always a combination of both.
Do Shark sweat? They eat a lot of salty food.