Mecha Link first met Link, when Link was getting ready for his battle against Calamity Ganon. Link was then under attack so Mecha Link saved him. No one knows who created him but people do know that Mecha Link wsa destined to be partners with the Hero of Hyrule.