It's argued that Ocarina of Time marks the very beginning of the Legend of Zelda. The subsequent hero clothes are worn in honor of the original hero, au the Link represented in this game, and
he wore it because it was the garb of the Kokiri.
This theory is contested, however, especially kwa several who believe that Minish cap, herufi kubwa is the original beginning, as it can explain why he wears the hat, but I personally believe it's OoT. That's the best answer I can offer you.
The chronology of Zelda is highly contested, and wewe can read zaidi about it
link.