Yoda still stands as one of the most powerful characters in Star Wars, yet even he couldn't defeat Palpatine. After their battle in Revenge of the Sith, Yoda felt beaten and fled into exile on Dagobah, where he hid away for 19 years. However, despite his painful loss against Darth Sidious, hiding for nearly two decades can be viewed as a cowardly move. So, why did Yoda go into exile?
Source:https://www.cbr.com/yoda-gave-up-palpatine-fight-star-wars/