Woodpeckers are coming for the sugar
Woodpeckers come to hummingbird feeders mostly because of the sugar water. Sugar is a quick source of energy, and downy woodpeckers are omnivores, so a sweet liquid is an easy thing to eat. Downies mostly eat insects, but they also take seeds, berries and suet, and now and then they drink from sugar-water feeders.
The woodpecker is after the sweet liquid, not the hummingbirds. It does not need the sugar to survive. It is a treat, and an easy one to reach.
Why they keep coming back
Many woodpeckers find a feeder by accident. Once one has found a reliable source of food, it tends to come back, so a single visit can become a regular stop. Other woodpeckers may copy the bird they see, which can bring more visitors to the same feeder.
The habit seems more common in some regions than others. How birds first learn it is not well settled.
Insects can add to the draw
Downies eat mostly insects, especially beetle larvae and ants. Sugar water can attract small insects to a feeder, and a woodpecker that stops by for a snack may also pick off the bugs gathered there. Hummingbirds get most of their energy from nectar and also eat small insects. For more on that, see what do hummingbirds eat.
How sure can you be?
Most of what is known about woodpeckers at hummingbird feeders comes from birding columns and reader reports, not controlled research. Treat the reasons above as the most likely explanations, not settled facts. The sugar is the reason most often reported.
What it means for your hummingbirds
A woodpecker at the feeder is not a sign that it is hunting hummingbirds. Downies are not known as hummingbird predators. The bigger issue is that a woodpecker can crowd hummingbirds away from the nectar and tip the feeder, spilling it. If that happens, the options are in downy woodpecker at my hummingbird feeder.