It comes from an ancient Chinese tradition where when a request was sent to the ruler on a piece of "paper" or the equivalent at the time, the rock was placed over the paper if the request was accepted, the paper was draped over the rock, indicating defeat of the request, if the request was rejected. Hence, paper over rock = defeat.