Protecting the Wicket
This picture makes it plain that the batter's job is to protect the wicket (yellow sticks to the left of the batter in this photo). If the ball hits the stumps (vertical sticks) and dislodges the bales (short horizontal sticks across the top of the stumps), the batter is out.