What is cottonmouth?

Like walking in the desert without water for days on end, cottonmouth is the sensation of dry mouth produced from toking. What causes cottonmouth is clear if you are a stoner. But why does it even happen in the first place on a scientific level? You can learn more about that and how to get rid of cottonmouth here.