Before the 1990s CGI did not exist yet. You really had to film stuff outside.
The failure of Camelot (1967) caused American filmmakers to shift exterior shots from studio backlots to authentic locations.[4] The film was widely criticized for its cheap look because it was obviously filmed on an architecturally ambiguous set against the chaparral-covered hills of Burbank.[4]