In many cookie recipes, it's really important to allow the dough to chill so that they don't spread too much when you bake them. Chilling the dough solidifies the fat in the cookies so that it doesn't melt too quickly when you bake them.