In children, ureteroscopy is primarily performed to manage ureteral stones. Stones can cause significant discomfort, urinary tract infections, and even renal damage if not addressed. The procedure may also be used to evaluate and treat congenital anomalies of the urinary tract, which can lead to obstructive uropathy if left untreated.