Chilling the dough helps prevent the cookies from spreading too much. This is especially important for cookies that contain a lot of butter or oil, as these ingredients can cause the cookies to spread out and become thin.