Yeah, generally everything in a dungeon resets, unless you got the dungeon item. You keep that.
But the thing is, when you beat a dungeon and come back later, you can instantly fight the boss, hence "clearing" the temple, even though the rest of the dungeon stays the same. This lets you...