We don't have to assume that the aliens know Latin! The supposition is that the future humans call their home planet Terra instead of Earth and call themselves Terrans, and the aliens follow suit. The idea is that, in a science-fictional future where space travel is commonplace, the Earth, instead of being the World, is a *place*; and, like any other place, it should have a proper name, instead of a common noun meaning "dirt". (I've been told that, if you know Latin, then "Terra" is no better than "Earth", and "Tellus" would be a better choice. In fact, in some science fiction stories the Earth is called Tellus and its people are Tellurians.)

According to the [Historical Dictionary of Science Fiction](https://sfdictionary.com/), the earliest known use of ["Terran" as a noun](https://sfdictionary.com/view/127) meaning "a native or inhabitant of the planet Earth" (aka [Earthian](https://sfdictionary.com/view/1604), [Earthie](https://sfdictionary.com/view/1876), [Earthling](https://sfdictionary.com/view/2080), [Earthman](https://sfdictionary.com/view/46), [Tellurian](https://sfdictionary.com/view/120), [Terrestrial](https://sfdictionary.com/view/1195), [Terrestrian](https://sfdictionary.com/view/1703), etc.) was in [*Astounding Science Fiction*, April **1946**](https://www.isfdb.org/cgi-bin/pl.cgi?57384+c) (available at the [Internet Archive](https://archive.org/details/Astounding_v37n02_1946-04_cape1736)), in part 2 of the serialization of [George O. Smith](https://en.wikipedia.org/wiki/George_O._Smith)'s novel [*Pattern for Conquest*](https://www.isfdb.org/cgi-bin/title.cgi?21772). The quotation is from [p. 10, column 2](https://archive.org/stream/Astounding_v37n02_1946-04_cape1736#page/n9/mode/1up):

>Neckal spoke: "The battle progresses."
>
>Vorgan frowned. "Why or how can one so small defend himself against one of the Planet of Terror?"
>
>"The Little Man is agile and the **Terran** is clumsy."
>
>Lindoo nodded. "We may both curse and praise that. If the **Terran** were less clumsy, he might well be more difficult for Kregar."

The earliest citation for ["Terran" as an adjective](https://sfdictionary.com/view/126) is from part 1 of the same story, in [*Astounding Science Fiction, March 1946](https://www.isfdb.org/cgi-bin/pl.cgi?57567+c), available at the [Internet Archive](https://archive.org/details/Astounding_v37n01_1946-03_cape1736). The quotation is from [p. 9, column 1](https://archive.org/stream/Astounding_v37n01_1946-03_cape1736#page/n8/mode/1up):

>Stellor Downing was Martian by birth and by six hundred years of Martian-born forebears. His family could trace its line back to the first group of **Terran** colonists that braved the rigors of Martian life before technology created a Martian world that was reasonably well adapted for human life.

However, the form "Terrane" was seen earlier, in the **1881** novel [*Three Hundred Years Hence*](https://www.isfdb.org/cgi-bin/title.cgi?1010493) by [William Delisle Hay](https://www.isfdb.org/cgi-bin/ea.cgi?124608):

> I am speaking of the **Terrane** Exodus and the Cities of the Sea.

The earliest citation for ["Terra"](https://sfdictionary.com/view/123/terra) as a name for the planet Earth is from an **1871** lecture "Science & Revelation" by [Robert Payne Smith](https://en.wikipedia.org/wiki/Robert_Payne_Smith):

> Now, let us suppose ourselves philosophers come, we will say, from the planet Jupiter, on a mission intrusted to us by the Jovians, to examine and report upon the nature of the creatures which people the four inferior planets, **Terra**, Venus, Mercury, and Mars.

[Jeff Prucher](http://sf-encyclopedia.com/entry/prucher_jeff), an associate of the Science Fiction Citations site (precursor to the Historical Dictionary of Science Fiction), wrote the following essay on "Earthlings" in his [Hugo-winning](http://www.thehugoawards.org/2008/08/2008-hugo-award-results-announced/) book [*Brave New Words: The Oxford Dictionary of Science Fiction*](https://global.oup.com/academic/product/brave-new-words-9780195387063?cc=us&lang=en&):

>In science fiction, when beings from different worlds encounter each other, they are generally named by their planet or star of origin; thus [Martians](https://sfdictionary.com/view/240) are from Mars, and Sirians are from some hypothetical planet orbiting the star Sirius. While there are generally few terms in use for beings from any given planet or solar system, there is much greater variety in the terms for people who are from Earth. Many of these terms have been in use for centuries in other senses. Some, such as [**Earthling**](https://sfdictionary.com/view/2080) and [**Terrestrial**](https://sfdictionary.com/view/1195), originally designated earthly (as opposed to heavenly or spiritual) beings. [**Terrestrian**](https://sfdictionary.com/view/1703) was once an adjective used to describe animals that lived on land rather than in water. [**Earth-man**](https://sfdictionary.com/view/46) and [**-woman**](https://sfdictionary.com/view/1103) once referred only to beings that were associated with soil or the ground in some way; once SF writers got hold of them, they added [**Earth-folk**](https://sfdictionary.com/view/1975), [**Earth-girl**](https://sfdictionary.com/view/1875), and [**Earth-person**](https://sfdictionary.com/view/1729) as variations. SF writers also coined the fairly common terms [**Terran**](https://sfdictionary.com/view/127), [**Tellurian**](https://sfdictionary.com/view/120) (after [*Tellus*](https://en.wikipedia.org/wiki/Terra_(mythology)), the Roman goddess of the earth), [**Earther**](https://sfdictionary.com/view/1243), [**Earthian**](https://sfdictionary.com/view/1604), and [**Earthie**](https://sfdictionary.com/view/1876), in addition to many more that never quite caught on, including **Earthan**, **Terrene**, and [**Terrestial**](https://sfdictionary.com/view/1830). However, when faced with creatures from another star system entirely, beings from the Moon or Jupiter may seem slightly less alien, and so the word [**Solarian**](https://sfdictionary.com/view/1965) was coined to refer to any inhabitant of Earth's solar system, human or otherwise—[**Earthling**](https://sfdictionary.com/view/2080), [**Martian**](https://sfdictionary.com/view/240), and [**Plutonian**](https://sfdictionary.com/view/1460) alike.