The geometry of Minkowski space-time is such that the INTERVAL s between two given events is the same for all (inertial) observers. The interval is defined as
Here, Δr is the spatial distance between the events and Δt the temporal distance between them. Thus, if upon a change of frame the spatial distance decreases, the temporal distance must decrease as well to keep the interval invariant.
In my previous post, there were two relevant events: the launch of the rocket from Earth and its arrival at the distant star.
For the Earth-based observer, Δr = 4 light years and Δt ≈ 4 years (approx), giving s ≈ 0.