Lets reflect on Aristocreon, in about 200 BC, putting their thoughts down on a scroll. They would be aware that the scroll might be kept in a library for some time. Maybe they could have imagined it surviving for 300 years. But they never would have imagined that in 300 years a volcano might destroy the scroll, but in some way preserve it. And then that nearly two thousand years later future humans with machines made…
Keep in mind that a minuscule fraction of literary work survived, and most of that heavily biased towards what medieval monks found pious or (occasionally) interesting. The whole surviving corpus can fit on a few large bookshelves. The literacy was pretty high for an ancient society too. People wrote and consumed novels regularly. Bathhouses had attached libraries ordinary people could use.
The impression you get is that the classical world was full of people who thought about the world is a much more modern way than in the intervening 1500 years between that time and modernity.