When Star Trek first aired in 1966, America was still three years away from putting people on the Moon and the idea that people could one day live and work in space seemed like a fantasy.
source https://phys.org/news/2021-10-jeff-william-shatner-blue-star.html