Shredding the butter helps to ensure you get a flaky texture. It also helps ensure you have an even distribution of butter in the flour that mixes in easily. When baked those ripples of butter throughout the dough release vapour which creates flaky layers.