why did obi die
The reason that Obi Wan let Vader kill him was because Luke had to confront Vader. If Obi Wan would have fought Vader, Luke may have never gotten the chance and therefore would have never known that Vader was his father and he never would have got to confront him.