Motion of parallax:
https://www.youtube.com/watch?v=Y8FG7tEs4GM

The line of sight is the path that connects the target to the eye. When a train speeds up, the line of sight of a nearby tree shifts its direction of motion quickly. As a result, the trees seem to be moving in the opposite direction. On the other hand, due to the extreme distance from the eye, the line of sight of distant objects (hilltops, the moon, the stars, and so on) does not change much. Therefore, distant hilltops, the moon, and the stars, among other things, tend to be stationary.