Obi Wan is said to have “risen above” much of the emotions and trauma that scarred people during the Clone Wars by the time Mail finds him (which takes place maybe… 3-4 years before ANH?
I would imagine that it took him time to reach that point of understanding and wisdom.