That is called a placebo effect. You thought it would help you and it did. In the medical field many drugs and non-drugs work by the same technique.