In the ancient world, good ideas were thought to come from the gods, or, at any rate, from outside of the self.
During the Enlightenment, rationality was the guiding principle, and philosophers sought out procedures for thinking, such as the scientific method, that might result in new knowledge.