These crystals form when there is an excess of oxalate and calcium in the body, leading to precipitation and crystallization. Factors contributing to their formation include dietary intake of oxalate-rich foods, metabolic disorders, and insufficient hydration.