Chilling cookie dough before baking solidifies the fat in the cookies. As the cookies bake, the fat in the chilled cookie dough takes longer to melt than room-temperature fat. And the longer the fat remains solid, the less cookies spread. In addition, the sugar in the dough gradually absorbs liquid.