Dear student,
The interior of the earth is made of different substances which are not uniformly distributed. Also due to the difference in the temperature and pressure in different layers of the interior of the earth, different material is present in different states in different layers of the earth.
This creates a discontinuities in the interior of the earth.
Regards