Juvenile arthritis is an autoimmune condition that can affect the eyes, causing inflammation, pain, and vision problems like uveitis.