Five elements bind every Star Wars movie together: a comical droid, a bad dude who wears all black, someone saying "hyperspace," a lightsaber, and, unfortunately for us all, a desert planet.
Obviously, the desert planet trope was baked into the franchise from the start. When we first meet our hero Luke Skywalker in the 1977 original, he's living with his aunt and uncle on a moisture farm on Tatooine, staring off into the binary sunset and wishing he could get out of this beige-colored hellscape. Because who wouldn't want to leave a desert planet? Desert planets are the "this town" that every emo kid has "gotta get out of."
Look, Luke left his homeworld and only returned once (not counting Force Ghost Luke), and that was to rescue his best pal. At one point in his past, Luke definitely wanted to go to Tosche Station to pick up some power converters, but that doesn't mean he liked Tatooine. For all we know, he may well have hated sand as much as his father did -- and there's nowhere that sand is more pervasive than on a desert planet, a whole planet full of sand. Awful!