in earlier times, people thought that such nightmares were really the work of demons. they thought people were having nightmares because an incubus was sitting on the chest of the sleeper. this can also be seen on the image. sometimes people also thought magic and demonic possession were involved.