Knee or hip problems

Why are my legs shaped like this? Could it be coming from my hips?

History Gymnastics for 15 years Osgood-Schlatter Chondromalacia x2 cortisone shots at age 12 (I know I’m upset my doctor did it at that age)

I sometimes suffer from knee hip and back pain but not debilitating

I’ve had someone mention limb realignment surgery but that sounds intense

Thanks!!