The unexpected history of science