Why do woodpeckers peck?

trees and barck