Here's why:
* Igneous rocks form from the cooling and solidification of molten rock (magma or lava). Basalt is formed from the rapid cooling of lava on the Earth's surface.
* Sedimentary rocks form from the accumulation and cementation of sediments.
* Metamorphic rocks form when existing rocks are transformed by heat, pressure, or chemical reactions.