I'm curious to learn which movies the OP had in mind when he/she said they could have been set somewhere other than space.
Well, there's no shortage of candidates. Lots of movies and TV shows just take familiar plots and redo them...
in space! Alien is a haunted house movie in space.
Outland is
High Noon in space.
Star Wars is a fairy tale/sword-and-sorcery epic/WWII dogfight movie in space.
Battlestar Galactica (the original, or at least its pilot) was the Book of Mormon in space. Sometimes it's even literal, like
Robinson Crusoe on Mars or
Gilligan's Planet (yes, there was an actual cartoon of that name). There's plenty of prose science fiction where the alien or outer-space setting is utterly crucial to the narrative -- for instance, Kim Stanley Robinson's Mars trilogy, a generational epic about the colonization and terraforming of Mars (or it would be generational if they didn't figure out life prolongation in the first book), or
Ringworld, which is about the exploration of a megastructure millions of times larger than Earth, or
Tau Zero, which is about a starship crew stuck at relativistic speed and having to cope with the severe time dilation and its conseqeunces. There's no shortage of SF stories that could only exist in an outer-space or alien-world setting. But film and TV SF tend to be more mainstream, and often written and produced by people who aren't career SF storytellers, so there's more of a tendency there just to take a familiar type of story premise and dress it up with spaceships and ray guns.