Why do doctors advise some patients with internal derangement of the knee to get more sunlight?

Because pathological inversion of the knee is primarily associated with rickets, a major cause of which vitamin D deficiency is a major cause, bone growth can be promoted by increasing the amount of vitamin D produced by the skin through increased sunlight hours.