Grating breaks the dough’s protein chains, leading to extra tenderness, and in shortbread dough specifically, grated shreds will melt into each other, forming a pebbly surface and open-textured crumb. It’s similar to cutting small pieces of very cold butter into dry flour to create the shortbread crust’s flaky structure while the butter parts melt into airy pockets of tenderness.