This is more of a relative velocity question. As you said, with respect to the bottom mass, the top mass is not moving. The idea is the same as you driving inside a car. The car is moving, and with respect to the car, you are not moving. However, with respect to the ground the car is moving, so...