Translation:He is glad because he is not afraid.
Is the Lui doing anything other than specifying gender? Would the sentence still function without it, albeit with a bit more ambiguity?
You are correct. If you know who are you talking about, you will use "Îi pare bine pentru că nu îi e frică".