You sweat because you are afraid of your homework. It is because you haven't paid attention in class and you don't know the answers to your homework. When you get frightened, adrenalin kicks in and it increases your body metabolism producing more energy. When heat is produced, your body temperature increases and to cool you down, sweating takes place!
Trust me, it is the truth.
Hope it helps you!:))
Note: Next time, be attentive! I promise you won't sweat!