Plenty of words are named after people. Eponym is the word for the people they are named after, and it began as a word for the heroes who supposedly lent their names to whole peoples and lands.
The word is Greek. Epōnymos joins epi-, "upon," to -ōnymos, from onyma, a variant of onoma, "name." Merriam-Webster glosses the adjective as "so named" or "bearing a name derived from an existing name." As a noun it meant a hero whose name was given to a group of people.
Greek places often claimed such a figure. The Peloponnese takes its name from Pelopos Nisos, "Island of Pelops," after a legendary hero. Britannica notes that Homer never used that name for the peninsula, calling it Argos instead.
Athens used the idea to keep time. Its chief magistrate was the archon eponymos, the archon who gave his name to the year. After 683 BC the office was held for a single year, so an Athenian date meant "in the year when so-and-so was archon." Roman consuls served the same purpose.
English took the word late. Merriam-Webster gives 1846 as its first known use, in the sense of one for whom something is named.
The dictionary also gives a second sense, so the word now points both ways. The first is the giver of the name: Pelops is the eponym of the Peloponnese. The second is the name that results, as of a disease or invention. Both are in standard use, which can make a sentence about eponyms ambiguous.
The word also belongs to a family. The same Greek onyma sits at the end of synonym, pseudonym, toponym and acronym. Each one is a kind of name, and eponym is the kind that comes from a person.