In choosing any role, I ask the same questions: what kind of part is it? is the role challenging? does the director have a vision? is the story moving? etc.
The idea in The Man that Would Be King was that the music should recreate all that majestic surrounding and emphasize the adventure, but also speak about the frustration or, rather said, the curse of both protagonists, even before happened what happens them.