One theory is that it came from the Battle of Bosworth Field in 1485.
Henry Tudor defeated Richard of York and became King Henry VII. Bosworth Field was later referred to as Dickies Meadow - where Richard (Dickie) - the last of the Plantaganents - died & lost the crown.
I don't know whether this is true, I imagine most people just thought that he was up sh1t creek!