Why do People Knock on Wood?

The phrase ‘knock on wood’ is used when the speaker wants to convey their hope that things go well. This is an international reference and seems to imply that the person does not want to jinx or curse him/herself by recognizing good will.