As an avid player of both Yoshi's island and Zelda:Ocarina of Time I would like to say I found this one myself when I was very young. (I am not saying I was the first to find it I'm just saying I noticed it myself.
Anyway, if you listen to the two songs they have an obvious similarity.