Staling is caused by starch retrogradation. Over time, the starch molecules in the bread harden and recrystallize, making the crumb firm. Simultaneously, moisture migrates from the inside (crumb) to the crust, leaving the bread dry and firm, even when stored properly.