If the dough isn’t chilled before baking, the butter will spread making a flat cookie that turns hard and chewy. Chilling the dough also gives the flavors a chance to blend together properly.