Legend assigns their origin to Pope Gregory I, who allegedly created the four plagal modes corresponding to the already existing four authentic modes. All of them were named after him as the Gregorian modes (or tones). In fact, the church modes were developed after Gregory's time (starting in the ninth century) as a theoretical framework to describe the tonal structure of Gregorian chant, which also developed after Gregory's time.
For more information, see musical mode.