The -gard element in Asgard’s name is a reference to the ancient Germanic concept of the distinction between the innangard and utangard. That which is innangard (“inside the fence”) is orderly, law-abiding, and civilized, while that which is utangard (“beyond the fence”) is chaotic, anarchic, and wild. This applies both to the geographical plane and the human psyche; thoughts and actions can be innangard or utangard just as readily as spatial locations. Asgard is the ultimate model of the innangard, while Jotunheim, the “Homeland of the Giants,” is the epitome of the utangard.
Midgard (“Middle Enclosure”), the world of human civilization, is, as the name implies, somewhere in the middle – not quite as innangard as Asgard and not quite as utangard as Jotunheim. But Midgard is a space enclosed, on the geographical plane, by fences, and on the psychological plane by norms and laws. This makes it much closer – at least in theory – to Asgard than to Jotunheim. In other words, Asgard is the divine model upon which the pre-Christian Norse people patterned their world.