Because there are 2 types of igneous rocks:- •Intrusive rocks-are rocks when the magma cool’s down before reaching the surface of the earth. •Extrusive rocks-are rocks when magma cools down after reaching the earths surface. So their composition can be different because of the formation of the rocks at different places. Eg:-Granite rock:-intrusive rock. Basalt:-extrusive rock