Freeze-drying food (also known as lyophilization or cryodesiccation) is a dehydration process used to preserve a perishable foodstuffs, and of course makes it more convenient to carry. Sealed freeze-dried foods can be stored at room temperature without refrigeration, and are protected against spoilage for many years.
One of the good things about freeze-drying is that it causes less damage to the food than other dehydration methods which use higher temperatures. Also freeze-drying does not usually cause shrinkage or toughening of the food (think jerky) being dried. In addition, flavours, smells and nutritional content generally remain unchanged.
In the bad old days of bush-walking, there was often very little choice but to carry bulky heavy foods. Dried fruit, chocolate, and rice were then considered relatively lightweight hiking foods.
Today of course as seen below you can have a 3 course meal while hiking miles from civilisation.