Question: why x rays are electromagnetic waves?
Answer: X-rays are a form of electromagnetic radiation similar to radio waves, microwaves, visible light and gamma rays. X-ray photons are highly energetic and have enough energy to break up molecules and hence damage living cells. When X-rays hit a material some are absorbed and others pass through.