I believe that very little has ever been accidental.
At the risk of getting both the scientist/evolutionists AND the creationists in an uproar, I believe that the Universe is Intelligent; and Knowledge and Ideas are always floating around, so that someone with enough desire and curiosity can hook up with them...
(I think those ‘someones’ have sometimes been called ‘prophets’, ‘geniuses’, etc.)
Sounds like what Terry Pratchett talks about in his DiskWorld Series. That there are ideas bouncing around the universe and if you happen to be just the right place when they are bouncing through your space time they hit you.