Refrigerating your cookie dough allows the butter and dough to firm up and solidifies the fat leading to less spreading of the cookie and a softer chewier texture.