The ancients were not just the famous Greek, Roman, Babylonian, Indian and Chinese philosophers, who are famous for their progress in reasoning.
Human's across every culture have spun creative explanations for natural phenomena, going back as far as we have any records.
- Why does it rain? How can we make it rain?
- What are the planets? What do their cycles and alignments mean?
- What is an illness? How do we avoid it? Cure it?
The famous philosophers, despite their progress, were still not immune to this kind of thinking.
Non/Pre-scientific answers to otherwise unanswerable questions gave people stories to satisfy their need for order and give them hope.
Even in those famous philosophers' days, a great deal of "knowledge", had this form. Despite their progress on more formal ideas.
In the modern world, many people still take such answer seriously in domains where science has no evidence (afterlife, cosmic justice, ...), and even where it does (astrology, crystals, etc.)
Anyway, those crazies came up with atomistic theory to explain silly myths.... and ended up explaining phase change as an emergent phenomenon.