To take this a step further -- while Universal nailed Diagon Alley, they actually botched Hogwarts! You see the exterior and a small part of the interior as the queue for a ride.
As you said, it's central to the narrative and by far the most important setting. It's somewhat understandable that they didn't go all-in when they built Hogsmeade originally, as Hogwarts would have been more expensive/harder to do well, and they didn't know how big of a success it would be. Now, though, it feels crazy that they aren't building Hogwarts as the HP area in Epic Universe.
As for Star Wars -- Naboo is probably the only planet that A. featured heavily in one of the films and is thus recognizable, B. is visually interesting beyond just desert/forest/etc., and C. is not completely infeasible to build (Coruscant, e.g., would be amazing but is not achievable). Naboo is just kind of a vague mashup of Byzantine and Baroque (i.e. not really unique), though, and was never going to be an option for multiple other reasons.
Disney didn't really have any great choices in terms of pulling from the movies for a specific, immersive setting. While I think Galaxy's Edge is relatively disappointing overall, I'm not sure what else they could have done in terms of the location.