At the end of the game, Joel finds out that Ellie is likely the only person in the world that's immune to the Cordyceps virus, and the Fireflies need her to create a cure. The problem, of course, is that by removing the infected portion of Ellie's brain, the Fireflies will kill her. In the end, this is exactly why Joel lies to Ellie because he
Perhaps the most convincing part of Joel as a character in “The Last of Us” (both the series and the games) is the fact that he is not painted in any heroic light. From the very beginning, Joel has never tried to be in the spotlight or at the center of things, and he definitely did not want to be anybody’s savior.
However, Joel's death is also the catalyst for the story in The Last of Us Part 2, which sees Ellie on a quest to find Abby and exact her revenge. Of course, in typical Last of Us fashion, that
hlBP.