He was forced to by the court system.
When watergate scandal broke to the light, President Nixon had almost 3700 hours of recordings on private meetings on the white house that he and the secret service recorded, the court system forced him to surrender all this tapes, even after he refused several times.