The irony with Lucas is that he didn't want to direct the prequels but he was told by everyone that he asked to direct it himself because it was his creation and it would be most true to his vision.
Disney sort of got lucky with Marvel making everyone think they could only make hit movies.
But they've made an equal ammount of mediocre films with flashy visuals (TRON Legacy) to outright trash (Tommorowland).
Even among the Marvel movies there are some stinkers.
In Disney's track record the new Star Wars trilogy is less of an outlier than people think.
And a lot of their films and shows don't really have a lot of staying power. Who is still talking about or remembers Mulan and Cruella?
Less luck and more feeling the need to capture that teen to early twenties mostly boys audience. Disney briefly had those three Pirates movies in the early 2000s. Those you called out and attempts at Sorcerers Apprentice, John Carter, Prince of Persia, Lone Ranger never panned out. Attempts at bringing back the Pirates movies were stupidly expensive for the levels of success they were reaching. With Marvel, they nearly snatched up that entire market, and continue to grow the audience.
Star Wars seems stagnate appealing to the same audience. Lack of interest from international audiences who didn't have the build in cultural acceptance of the brand. Some desperate attempts to make Solo play better in other countries. Changing the name to Ranger Solo because "Star Wars." Casting choices and fates of certain characters in that movie. Last I read they hit pause on two of the upcoming movies?