I believe that the reason we dream is because our brains are still living while we sleep.
Radi Carry developed a theory named "<span>Spontaneous generation". This theory assumed that living creatures can be generated from non-living things and he used this theory in order to explain the origin of flies.
He carried out another experiment with three jars to check that bad air did not cause any flies.</span>