X rays have a short wavelength. Imagine a road covered with pingpong balls. Try to roll a marble across, and it will most probably bounce back and f orthforth amongst the balls, and eventually stop without getting to the other side. Now try a soccer ball. These will cross almost all the time. And now a truck. I doubt that you will find a situation where these don't cross..
Similarly, the atmosphere can be thought as the road with poing poingping pong balls(molecules), and EM waves are various objects you try to roll. Radio waves have large (1 meter &c) wavelengths. Nobody stops these. Light waves have much smaller wavelengths (in $\mu m), but those are still large as compares to atoms (these are to the order $10^{-10} m$$\mu\text{ m}$), but those are still large as compares to atoms (these are to the order $10^{-10}\text{ m}$). X rays are small enough to be obstructed by everyone, thus (thankfully) they do not reach the crust and fry us.
An interesting side note: The reason that makes radio waves abundant is the same reason why they are harder to use than light/xrays in astronomy. Because of their size, they do not give an accurate reading unless we employ large telescopes. Think back to the truck. If an ant hypothetically throws a truck at you, you really can't be sure where the ant is. But if the ant throws a marble or a sesame seed (assuming you catch the seed and determine its velocity), you can calculate the trajectory and find the ant with accuracy, and squash him for throwing things at you. The same principle applies when searching for a radio source..