You poke holes in shortbread for the same reason as docking a pie crust. There's a lot of butter in the dough, and as it bakes it releases steam. Since you want the cookies to be nice and flat, poking holes allows the steam to escape so the shortbread bakes up flat and even.