Loft
late Old English, from Old Norse lopt ‘air, sky, upper room’, of Germanic origin; related to Dutch lucht and German Luft .
wiktionary
From Middle English lofte(“air, sky, upper region, loft”), from Old English loft, (doublet of native Old English lyft) of North Germanic origin, from Old Norse lopt(“upper chamber, attic, region of sky, air”), from Proto-Germanic *luftuz(“air, sky”). Akin to Scots lift(“air; sky; firmament”), Dutch lucht(“air”), German Luft(“air”), Old English lyft(“air”). More at lift, aloft.
etymonline
loft (n.)
"an upper chamber," c. 1300, an extended sense from late Old English loft "the sky; the sphere of the air," from Old Norse lopt (Scandinavian -pt- pronounced like -ft-) "air, sky," originally "upper story, loft, attic," from Proto-Germanic *luftuz "air, sky" (source also of Old English lyft, Dutch lucht, Old High German luft, German Luft, Gothic luftus "air").
If this is correct, the sense development would be from "loft, ceiling" to "sky, air." Buck suggests a further connection with Old High German louft "bark," louba "roof, attic," etc., with development from "bark" to "roof made of bark" to "ceiling," though this did not directly inform the meaning "air, sky" (compare lodge (n.)). But Watkins says this is "probably a separate Germanic root." Meaning "gallery in a church" first attested c. 1500. From 1520s as "apartment over a stable" used for hay storage, etc.
loft (v.)
"to hit a ball high in the air," 1856, originally in golf, from loft (n.). Compare sky (v.) in the modern slang sense. An earlier sense was "to put a loft on" (a building), 1560s; also "to store (goods) in a loft" (1510s). Related: Lofted; lofting.