A lower body infection, such as yeast infection or athlete's foot, is the most likely cause. A low-grade infection caused by injury while shaving your legs or pubic hair can also cause your groin lymph nodes to swell. Sexually transmitted infections (STIs) and cancer are other possible causes.