The story
Probably from Romans 2:14 in the King James Version of the Bible (see the quotation under sense 3 below), though the term has come to have the opposite meaning, as senses 1 and 2 indicate. Sense 3 is now largely limited to references to the Bible verse.
Etymology from Wiktionary, CC BY-SA 4.0.