दिग्वाससो मुक्तकेशान् वीक्ष्य चामीलयद् दृशौ ॥ ४० ॥
vīkṣya cāmīlayad dṛśau
The glorious Brahmā next evolved from his sloth the ghosts and fiends, but he closed his eyes when he saw them stand naked with their hair scattered.
Ghosts and mischievous hobgoblins are also the creation of Brahmā; they are not false. All of them are meant for putting the conditioned soul into various miseries. They are understood to be the creation of Brahmā under the direction of the Supreme Lord.