Woodpeckers are primarily attracted to structures for two reasons: communication and feeding. They drum on structures to communicate with other birds and to feed on insect larvae, such as carpenter bees. They may also choose to nest within these structures.