Dear Student
While travelling in train it appears that the trees near the track are moving Whereas co passengers appear to be stationary. It is because the co passengers are also moving with us with same speed so relative motion between us and co passengers is zero. Whereas the trees near the track are at rest relative to us so they appear to be moving.
Regards