The sack contained salt. When the donkey fell into the river, the salt got dissolved in the water. It reduced the weight and made it easier for the donkey to carry.