Some electromagnetic waves like ultraviolet, X rays and gamma rays have high frequencies and therefore have high energies. These waves, upon entering the human body, ionise immensely - they expend their energy to the surrounding tissue, and damage many core processes in the human cell like DNA maintenance and functioning. This causes irreparable damage like cancer, mutations, burns, etc.