They thought things like this happened by a process called spontaneous generation. It’s exactly like it sounds. People believed that living things could spontaneously spring forth from matter without any sort of lineage. Basically, if they couldn’t see where it came from with their own eyes, it didn’t exist before then.
Latest Answers