He was created by the MC a long time ago before he reincarnated.
Somewhere down the years tho, someone came and wiped his memory, and altered it, erasing any and all history of the MC.
Later on the MC forces him to regain his memory, and basically gets him back as one of his generals.