2.18 Explain this common observation clearly : If you look out of the window of a fast moving train, the nearby trees, houses etc. seem to move rapidly in a direction opposite to the train’s motion, but the distant objects (hill tops, the Moon, the stars etc.) seem to be stationary. (In fact, since you are aware that you are moving, these distant objects seem to move with you).
Our eyes detect angular velocity, not absolute velocity. An object far away makes a lesser angle than an object which is close. That's why the moon (which is so far away!) does not seem to move at all angularly and thus seems to follow you while driving.
In other words, while in a moving train, or for that matter in any moving vehicle, a nearby object moves in the opposite direction while the distant object moves in the same direction. !