There’s a lot of butter in shortbread cookie dough. The more you work the dough, the softer and warmer the butter becomes (which only gets worse in the oven). Placing the dough in the fridge for a few hours solidifies the butter, helping the baked cookies come out of the oven with a beautiful round shape and flawless edges.