A urine test may be recommended if you are experiencing symptoms like frequent urination, burning sensation during urination, pelvic pain, or abnormal vaginal discharge. It is also a routine part of prenatal care and is often performed during annual gynecological exams.