Anakin told Ahsoka she needed one last lesson.
Summary SCREENRANT VIDEO OF THE DAY SCROLL TO CONTINUE WITH CONTENT Anakin Skywalker taught Ahsoka Tano an important lesson in Ahsoka episode 5, but there's still intense debate about it. Star Wars viewers were understandably thrilled when Hayden Christensen returned as Anakin Skywalker, appearing alongside Rosario Dawson's Ahsoka in the World Between Worlds.
Ahsoka Had Never Outgrown Her Training With Anakin Ahsoka was trained by Anakin Skywalker during the Clone Wars, a time when the entire galaxy was consumed by war. Jedi were no longer peacekeepers and were instead expected to be soldiers. Anakin dialed this up for Ahsoka and made her into a warrior, because he knew it would be the most effective way of keeping her safe. Ahsoka left the Jedi, disillusioned with the Council, but Anakin's lessons stayed with her.
This is no way to live, especially in a galaxy as shaken by war as her own. Ahsoka is still living as though the Clone Wars were ongoing, seeking out conflicts to settle and people to fight, because that's all she has ever known. But Ahsoka will ultimately die if she focuses only on death, and this is the mindset Anakin - whether a Force ghost or an aspect of Ahsoka's own mind - had to break within her.