In Episode 4 of star wars, why did Obi-wan stop fighting Vader, and let himself be killed? I guess he was outmatched and just surrendered?

A lot of people say its a great scene, but I feel like there is something I am missing.