X-rays don't go deep enough to show us what is going on throughout the Earth. Earthquake waves, however, travel through the whole Earth, and allow scientists to see what is happening all the way to the center. If x-rays could travel through the Earth, we would also need a huge x-ray detector to record the x-rays as they came out of the Earth!