Why does red light travel faster than blue light?

Jon Custer hinted at something, which I think is best explained via an analogy.

Imagine you can walk along a pavement at 4mph. When the pavement is empty, it takes you an hour to travel four miles. But when the pavement is crowded, you're dodging around people and bumping into them. You're still walking at 4mph, but it takes you an hour and a half to travel the four miles. And if you're a little old lady with short little steps walking at 4mph, you're held up more than if you're a big guy with long strides walking at 4mph. Now let's look at your questions again:

But I wonder why their speeds differ in any other medium?

Because the light interacts with the material, and those interactions are wavelength dependent.

And why Red light travels faster while it has less energy than blue light?

Because the light interacts with the material, and those interactions are wavelength dependent!

enter image description here


Feynman:

The correct picture of an atom, which is given by the theory of wave mechanics, says that,so far as problems involving light are concerned, the electrons behave as though they were held by springs. So we shall suppose that the electrons have a linear restoring force which, together with their mass $m$, makes them behave like little oscillators, with a resonant frequency $\omega_0$. ...........The electric field of the light wave polarizes the molecules of the gas,producing oscillating dipole moments.The acceleration of the oscillating charges radiates new waves of the field.The new field,interfering with the old field,produces a changed field which is equivalent to a phase shift of the original wave.Because this phase shift is proportional to the thinkness of the material ,the effect is equivalent to having a different phase velocity in the material''.

Considering the above model the expression for refractive index can be derived which shows the refractive index depends on the frequency of the light and since speed of the wave through the meterial depends on the refractive index so different frequency waves move with different velocities.

Here is the Feynman's derivation

http://www.feynmanlectures.caltech.edu/I_31.html