Anakin watched as Luke embraced his sister. And as he did, he understood the message that was stated so many times by so many people. Obi-Wan, Yoda, Ahsoka, his mother, Padmé. They all urged him in their own ways.
It was, in the end, the only thing Anakin ever needed to do.