ref
From Middle English roy, roye, borrowed from Old French roi(“king”). Doublet of loa, rajah, Rex, and rex.