An imaginary line joining between the human eyes to a particular object is known as line of sight. When the person moves with fast speed the line of sight of close object changes rapidly. But the line of sight remains same for the distant object.
Similarly, when the passenger is looking outside through window of a fast moving train, the passenger observes that the nearby trees, houses etc seems to move rapidly because the line of sight between the passenger and the nearby things changes rapidly as the train moves very fast.
But when the passenger looks for the distant object like hill tops and the mountains, they seems to be stationary due to the line of sight remains same between the passenger and the distant object.