Knocking on wood is an old pagan/Celtic tradition. They believed that trees had spirits living inside of them and 'knocking on wood' would get the spirit's attention and that hopefully the spirit would help the knocker avoid any unpleasantries.
Abusive comment hidden.
(Show it anyway.)