Trying not to spoil a 40+ year old story, but Asimov eventually retconned that the flourishing of humanity was driven by a benevolent AI behind the curtain.