I had heard that two bits (a quarter) came from Spanish pieces of eight (Gold was divided into eight pieces).
At least that is what I heard.