The difference is narrative vs location-based play. A dungeon is location-based play: you're goal it to explore the dungeon and achieve some goal (loot all the treasure, find all the kidnapped villagers, disrupt the cultists, slay the dragon, etc). Generally, encounters are structured by rooms...