Why did the immigrants have to go to Ellis Island

Immigrants had to check in to the US somewhere, and in the New York area, Ellis Island was the place.