Why do green woodpeckers knock on wood ?

They knock on wood all day long with their beaks, but what exactly are woodpeckers trying to do? đŸ€”

avatar
Brut.