What did I say above..it's a territorial thing, my pecker makes more noise than your pecker, metal objects, like stove pipes, amplify that.
Now for the why: Male woodpeckers are not drilling for insect food, but calling for a mate. And the louder, the more important the male, and the better his chance of attracting a lady woodpecker as his mate.