The name of this beer is a warehouse instruction. Lager is the German word for "storage."
Merriam-Webster derives it from German Lagerbier, "beer made for storage," from Lager, "storehouse," plus Bier. The method came first and the name followed. Lager is fermented with a bottom-fermenting yeast that works at cool temperatures. The beer was then left to mature in cold storage, traditionally in the same cool caves where it had fermented.
That yeast has its own origin story. Most lagers use Saccharomyces pastorianus, a hybrid. Wikipedia says bottom-fermenting yeast seems to have emerged from a hybridization in the early 15th century. In 2011 researchers claimed to have identified the wild parent, Saccharomyces eubayanus.
Cold storage needed cold. In the 19th century German brewers dug cellars and packed them with ice cut from nearby lakes and rivers. Brewing in summer had been banned in many places across Germany. Refrigeration changed that: Carl von Linde built the first large refrigerated lagering tanks for Munich's Spaten Brewery in 1870.
English picked the word up in America. The food-language researcher Barry Popik found a Philadelphia newspaper advertisement from 1 December 1849 for a "new German Lager Beer Saloon." That is three years before Merriam-Webster's first known use, 1852. Early writers explained the name for curious readers. An 1852 guide to Pennsylvania said the beer "derives its peculiar value and flavor from storage in vaults, as the word 'lager' sufficiently implies." An 1854 newspaper said it rested four to six months in a cool vault. The OED's first example of "lager" alone is from 1855, and Merriam-Webster dates the verb, to lager, to 1881.
German Lager covers more than beer. It can mean a storeroom or warehouse, and also a camp. The camp sense reached English separately as laager, a defensive camp ringed with wagons, through Afrikaans. Both go back to an Indo-European root meaning "to lie or lay," the same root behind lie, lay and lair.
So a lager is, quite literally, a beer that has been made to lie down and wait.