The grind size affects the rate of water flow through the coffee. If the grind is too coarse, water flows through quickly, resulting in an under-extracted shot. If it's too fine, water flows slowly, leading to over-extraction.