Here's why:
* The Sun's Energy: The Sun primarily emits energy in the form of visible light, infrared radiation, and ultraviolet radiation.
* X-ray Emission: While the Sun does produce some X-rays, they are primarily generated in the Sun's corona (the outer layer of the Sun's atmosphere) and are a result of very high temperatures and energetic processes. These X-rays are much less intense than the other forms of radiation the Sun emits.
* Medical X-rays: The X-rays used in medical imaging are created artificially using specialized machines.
In summary: The Sun does emit X-rays, but not in the same way or intensity as medical X-ray machines. The X-rays from the Sun are a natural phenomenon, while those used in medicine are man-made.