If I understand correctly, from the view of the planet, since the light travels the same speed in either direction, the movement of the spaceship causes the light to the left to have less distance to travel (as the wall is coming to meet it), whereas the wall is moving away from the light to the right so it travels further