why meteorites that hit earth provide evidence of the composition of earths interior

why do meteorites that hit earth provide evidence of the composition of earths interior?