The ancient household registration system was not perfect and there was no census. Some unnamed and unclaimed bodies can only be buried in a hurry, even without tombstones. Most of the bodies were buried on the barren hillside. Over time, overgrown with weeds, barren graves come from this.
Temples were originally used for ancestor worship and mourning. Later, with the development, some were used to admire bodhisattvas, some were used to mourn the literati warriors, and some were used to fear nature. Temples have existed for thousands of years. Temples in sparsely populated areas that have gone through the war crusade have gradually fallen into disrepair, and the Buddha statues have not been consecrated and cleaned, becoming ancient temples covered with dust and spiders.
"Don't spend the night in the ancient temple" has been circulating for hundreds of years, and the ancients came to the conclusion that this statement has some truth. Temples have eaves, which can shelter from the wind and rain, and are also places where people burn incense. It seems safe and reliable, but in fact it contains greater danger. Graves are overgrown with weeds and even more opaque in the dark, but as long as you overcome your fears, it is a very safe place.
There are many reasons for the ancient saying that "it is better to spend the night in a temple than in a deserted tomb". First, the ancient people were superstitious, and the ancient temples that no one wanted to go to were generally very flustered and shabby. Second, the robbers are out of consideration for personal safety. Third, the ancient temple collapsed, because it is very old, and it is difficult to guarantee that it will be strong. Fourth, stay away from the noise. Comparison Temple once carried the wishes of thousands of people in Qian Qian. Fifth, the concept of hierarchy, the ancients thought that people and gods were different and should not disturb the gods.