Let’s debunk the second answer, “They’re just for exercise.”
Most schools I have attended have various drills–some ad hoc, some that they use regularly. Why do they bother with patterns then? Why did General Choi show both patterns and exercises in his encyclopedia? While patterns, rightly executed, give considerable exercise, when did you last go to a competition and present an exercise?