Waves have energy that causes particles in matter to vibrate. So, it stands to reason that

the higher the energy, the slower the particles vibrate (which means a lower frequency).
the lower the energy, the faster the particles vibrate (which means a lower frequency).
the lower the energy, the slower the particles vibrate (which means a higher frequency).
the higher the energy, the faster the particles vibrate (which means a higher frequency).

the higher the energy, the faster the particles vibrate (which means a higher frequency).