How did tetra become Zelda?

Tetras identity is revealed when the king of Hyrule fuses the 2 peices of the triforce

of wisdom together