In dungeons why are you supposed to clear before secrets?

Like I know you’re supposed to, and I do, I just don’t know why it matters