There have been several theories of the origin of life, such as the following ones:
• Spontaneous generation,: life arose from decaying organic substances.
,
• Panspermia,: where life was brought to Earth by a meteorite from outer space.
,
• Primordial soup,: the first cell formed from organic molecules found in primitive oceans.
However, none of them involved small compartments in rocks, so the statement is false.