It is used to prevent and treat kidney stones, particularly calcium oxalate stones, by increasing urine pH and citrate levels, which inhibit crystal formation.