What is the history of tennis’ strange scoring system?

The origins of the 15, 30, and 40 scores are believed to be medieval French. The earliest reference is in a ballad by Charles D’Orleans in 1435 which refers to quarante cinque (which gave rise to our 40) and in 1522 there is