It’s not being in space but rather traveling at high velocity.
There are good ELI5 posts on why this happens such as [this one](https://www.reddit.com/r/explainlikeimfive/comments/2bm5ff/eli5_why_does_time_slow_down_at_relativistic/)
It’s near impossible for people to reach such high speeds on Earth because the air itself resists movement, but by leaving the atmosphere, astronauts can reach orbital velocity [which is extremely fast by terrestrial standards](https://what-if.xkcd.com/58/) and start seeing actual relativistic effects.
Latest Answers