This was done to prevent the proliferation of secret treaties that occurred in the 19th and 20th century.