Borrowed from French correct, from Latin correctus (“improved, amended, correct”), past participle of corrigere, conrigere (“to make straight, make right, make better, improve, correct”), from con- (“together”) + combining form of regō, regere (“I rule, make straight”)
https://en.wiktionary.org/wiki/correct