Thanks to its pentosans, rye flour absorbs eight times its weight in water, while wheat flour absorbs two. Unlike starch, the pentosans don't retrograde and harden after being cooked and cooled. So they provide a soft, moist texture that helps gives rye breads a shelf life of weeks.
Source: wiktionary