You want to chill the dough to help the butter and fats harden before you bake the cookies. This prevents the cookies from spreading and helps them hold their shape.