After the death of John XV, a relative of the emperor was elected pope as Gregory V. However, powerful poltical forces led by one Crescentius installed a man styled John XVI as pope on the Romans. This naturally provoked Emperor Otto III, who returned to Rome with Pope Gregory. Crescentius was excommunicated and then executed by the Emperor. John XVI had fled but was captured and deposed. As a penalty for being the stooge of Crescentius, he was deprived of his sight and his ears and nose were mutilated. He actually lived on for several years and is believed to have died in a monastery. Later the family of Crescentius gained control of Rome and John XVII was one of the popes elected under their influence. Obviously, it would have been dangerous for John XVII to overlook the unfortunate antipope, John XVI. This confusion also affected the numbering of Popes John XVIII (XIX) and John XIX (XX).
There is also no Pope John XX. When the Portuguese John XXI was elected more than 240 years after John XIX, the confusion stemming from the John XVI situation persisted and John XIX was construed as having been John XX.