The answer is Doctors believed in a blending of religion and medicine
The Doctor is refering to Lady McBeth who was so consumed by guilt she started sleepwalking and speaking in her sleep, the doctor thought that her illness was well beyond his expertise because it was a punishment of god for her evil deeds.