Lack of vitamin D or calcium is the most common cause of rickets. Vitamin D comes from exposing skin to sunlight. But it is also found in some foods such as oily fish and eggs. Vitamin D is essential for the formation of strong and healthy bones in children. In rare cases, children can be born with a genetic form of rickets.