The different layers of the Earth have different densities as so have many other materials in our world.