Brown sugar hardens due to loss of moisture. Molasses provide moisture and when air passes the molasses dries out. This causes the hardening.