Absolute success in any deed comes only when the person has achieved total victory over the senses (indriyas). In its absence, total victory is impossible. Sense-control is not limited to conquering sexual desire and anger. As age advances, the appetite for lust automatically reduces. Sense-control includes conquering greediness, need for recognition, irritation and many such traits. Obtaining absolute victory over senses is no easy job.
How then can the ordinary person, who cannot even repair any part of his body, try to achieve absolute victory over the senses? How can he overcome the society? How can he go beyond the web of fruitive actions and their results that surround him? How is he to cross over these bondages and attain salvation? Gomukha, the ardent devotee of Hanuman, pondered upon the fate of ordinary people and thought of a solution. He then composed this hymn.
It was Treta Yuga (the second of the 4 eons). The fear that sins would drag him to hell and that as a result he would not be able to make the journey into heaven existed in the mind of every being. If during that pure period when Lord Rama was ruling people feared sins, then imagine the degree of fear one should have towards sins during the subsequent eon of Dwapara and the present period of Kali?
Living beings at that time were very knowledgeable. They were aware of the various planes of existence and how one travelled to these planes after death. They knew that evil deeds dragged them to hell and prevented them from moving into the higher planes after death. This fear prevented them from committing sins.
It is said that even the demons of that time feared transgressing dharma (rules of righteousness) and that they strictly abided by these rules even during war. Barring a few demons like Ravana who existed sporadically, all other demons adhered to the life of dharma. Ravana went against dharma so as to be blessed with death at the hands of the Supreme Master. It was not exactly a sin but a visible deed undertaken to show the world the outcome of such evil deeds.