High-frequency waves have higher energy because the energy of each photon is directly proportional to its frequency, as described by the equation E=hf, where h is Planck's constant. While the energy of a wave is also related to its amplitude, which correlates with the number of photons, the frequency itself plays a crucial role in determining energy levels. Higher frequency oscillations require a stronger restoring force, indicating that more energy is needed to achieve the same displacement. Additionally, a higher frequency results in more peaks and troughs in the wave, contributing to increased energy. Understanding these principles clarifies the relationship between frequency and energy in waves.