Because of enmity between
Brhaspati and
Sukra, Sukra took the side of the moon-god and was joined by the demons. But Lord
Siva, because of affection for the son of his spiritual master, joined the side of Brhaspati and was accompanied by all the ghosts and hobgoblins.