Why did kids use to get rickets?

They still do. Rickets is a metabolic bone disease of children which is usually the result of severe vitamin d deficiency, but can also have other causes. Vitamin d deficiency remains common, particularly with spending more time indoors and using sunscreen (which is necessary because skin damage from the sun can cause skin cancers). Please see your child's doctor for relatively new vitamin d recommendations.