Brown sugar contains moisture, and when exposed to air, that moisture can evaporate, causing the sugar to harden and clump together.