There is no 'grammatical explanation' beyond the fact that it is the wrong English sentence structure. 'New YorkCity' is the city's name; 'Earth' is the planet's name.
I think you have to tell them that it is idiomatic between and often within groups. We have already seen various examples here.
The planet Mars, the constellation Orion, the Nile River or the river Nile, the Mississippi River (not 'the river Mississippi'), the baby Jesus, Lake Michigan vs the Great Salt Lake, Mount Etna vs Brokeback Mountain, County Cork vs Cook County, etc.