Puff pastry contains lots of butter. As the cookies heat up in the oven, the sugars in the layers made from rolling the dough will bubble and caramelize to create a sweet crispy sugar layer all over each cookie.