A few hundred years ago people started to become interested in observation, experiments, and something close to what we'd now call the scientific method.
Previous natural philosophers mostly read what the ancients had written, thought about it, argued with each other about it, and accepted their conjectures as scientific fact. Many of these supposed truths were trivial to invalidate by actually going out in the world and measuring things, but that didn't come into fashion until relatively recently.
This brief history of science is often taught inside of chemistry classes. My teacher had a great time telling us about the beliefs that preceded our current understanding of the atom and how we came to reject them.