Vali and Sugriva were siblings. Rama hears the story very compassionately and understands the plight of Sugriva. Sugriva had already agreed to help Rama and Rama thought it would be fair if he would also help Sugriva in return.
Get your daily dose of Indian Mythology at https://www.mythoworld.com