I have tried to find an answer for you but I found out there is no clear, cut and dried explanation. There are a few theories regarding the origins of that particular phrase. First, have a look at:Originally Posted by Timesplitter
Also, a different explanation is given at:
Hope that explains things somewhat for you.