Psychotherapy (treatment by psychological means, especially interview) came from the knowledge that the source of certain illnesses and suffering is not disorders of the body, but the soul. It was therefore difficult to enforce itself in 19th century materialist medicine.
Freud and his psychoanalysis caused a major breakthrough. He noticed that many disorders were caused by a mental conflict that was pushed into the unconscious.