Patience.
And genetics.
Did you ever have nice knees? I knew some girls in high school who were thin but had "boxy" knees. I did have nice knees in high school, then they turned into boxes with my weight gain. Now that I've lost weight, the nice knees have returned.
I do lots of squats and lunges and general lower body work, but I honestly think that had little to do with it.