Revealing the high-energy electronic excitations underlying the onset of high-temperature superconductivity in cuprates