Stellar structure

A photon can move at light speed between interactions inside a star, yet energy may take a very long time to diffuse outward. What best explains this?