Why does endometriosis cause pain and health problems?