The economy that markets and governments obsess over started out as the job of running a house.
The Greek word was oikonomia, "household management" or "thrift." It came from oikonomos, a household manager or steward. Both Etymonline and Merriam-Webster break it into oikos, "house," and a form of nemein, "to manage."
One of the oldest books on the subject is Xenophon's Oeconomicus, probably written after 362 BC. It is a Socratic dialogue about running a household and a farm. Much of it is a conversation with Ischomachus, an Athenian gentleman farmer. He explains how he trained his wife, managed his slaves and worked his land. Wikipedia calls it one of the earliest works on economics in its original sense of household management.
The word reached English through Latin and French. Merriam-Webster dates it to the 15th century, in the Middle English form yconomye. Etymonline gives the 1530s. Both agree on the first meaning: managing a household, especially its expenses.
The bigger sense arrived in the 1600s. Etymonline dates the meaning "a country's wealth and resources" to the 1650s, as short for "political economy." The idea was to manage a state the way one managed a home. The sense of frugality, careful use of resources, followed in the 1660s. In the 1780s, Etymonline notes, America's founders generally used the word only to mean frugality.
The adjective is the youngest branch. "Economy" as an advertising word, meaning "cheaper," dates from 1821. By 1950 it could also mean bigger and so cheaper per unit, as in the economy size.
The same Greek oikos later produced "ecology." Ernst Haeckel coined it in 1866 and defined it as the knowledge of "the economy of nature." The two words are cousins: one manages the house, the other studies it.