Video games often use multiple endings to reflect players' decision-making and thoroughness in playing. Those who make poor choices or do the bare minimum may get a more downbeat and unsatisfying conclusion. Those who go out of their way to make the right calls often get a good or golden ending to reward their efforts.
Source:https://www.cbr.com/video-games-best-endings-that-are-still-sad/