Answer
While sitting in a moving train, the trees appear to be moving in opposite direction because their position is changing with respect to us. While the position of co-passengers appears to be in stationary position since they are not changing with respect to us.