Why does chewing gum get hardened after drinking water?

Why does chewing gum get hardened after drinking water? This is a basic question, but please don't say temperature change, because I've tried that, and it never gets back to same elasticity. There must be some other chemistry at work. Even with lukewarm water or room temperature water it gets substantially harder.


