A sugar coating on the surface of the dough helps draw out the moisture on the top of the cookie, resulting in lots of cracks. Cook's Illustrated explains the science behind it.