Pre-ground pepper oxidizes over time, which makes it less flavorful and aromatic. When you grind whole peppercorns, you end up with fresher pepper that just tastes better. You can also adjust the grind size to produce coarse or fine pepper, whereas the majority of pre-ground pepper is finely ground.