Why do I need to chill churro cookie dough?

Chilling cookie dough before baking helps prevent the dough from spreading in the oven.