Why was Elsa punished for discovering the truth?

Besides an obvious excuse to have Anna be more relevant to the climax.

Besides an obvious excuse to have Anna be more relevant to the climax.