Well there is a scientific answer of course, but I'm assuming that's not what you're asking. We laugh mainly for social reasons—ever notice we laugh a lot more when we're watching something funny with our friends in lieu of being alone? As for sarcasm and the like, I really don't know. Why is over or understating something seem humorous to the human brain? Who knows.