This showed Yoda realizing the flaws within the Jedi order, that the stringent rules had caused them to lose their way in politics and war, and that the darkness within them couldn't be ignored and pushed away. As Ashoka said in Rebels "As the Clone War dragged on he carried a great burden, a deep sorrow, as if he knew before anyone, that one time was ending, and another beginning."