This might be caused by vitamin D3 deficiency if you kept them inside all the time without exposing them to natural sunlight.
https://www.msdvetmanual.com/poultry/nutrition-and-management-poultry/vitamin-deficiencies-in-poultry#v3347942
"Retarded growth and severe leg weakness are the first...