Paraphrase this text from the Ellis Island site. "Ellis Island doctors were particularly watching for signs of contagious diseases. Incurable diseases included trachoma and tuberculosis and guaranteed a return trip to where the immigrant came from."
It was important for doctors at Ellis Island to spot people with contagious diseases. If immigrants had a serious illness that could not be treated, they were not permitted and had to go home.