The exact cause of immune-mediated conditions is often unknown. However, a combination of genetic and environmental factors is usually involved. In some cases, infections may trigger an abnormal immune response, leading to the development of these conditions.