See the video below (question 3, 6 minutes 54 seconds from the start).
The explanation given describes the interaction between the vertical side of the cart and the rock dropped, but what if there is no interaction between the two and it is dropped, say, in the middle of the cart? While I am writing these words, I am thinking that at the moment it hits the cart, the rock will move to the right, creating a leftward force on the cart (using Newton’s 3rd law), slowing the cart down. Presumably the interaction here would the friction of the floor of the cart and the rock.