Why?
Because Mercury is moving faster than Earth and it is closer to the sun, the sun's gravity slows down time and so does speed. The faster you move, the more your time slows down. The more gravity is near you, the slower time passes.
It's a paradox because in the example, both rocks formed at the same time, but the one on earth is older.