The composition of a "meteorite" resembles the Earth's interior because they are both the result of formation from the same nebula.
EXPLANATION:
Nebula is the dusty solid particle consisting of "dust and gas" in the space. So the meteorite and earth both are the solid particles formed from the nebula.
Meteorite is the solid particles also known as meteoroid, asteroids or a comet.
The reason that both have same composition is because they both were formed from the same Nebula.