By puberty, the legs straighten out and most children can stand with the knees and ankles touching (without forcing the position). Knock knees can also develop as a result of a medical problem or disease, such as: 1  Injury of the shinbone (only one leg will be knock-kneed)  Osteomyelitis (bone infection)