Corn oil was first produced in the United States in the late 19th century and became popular as a cooking oil due to its mild flavor and high smoke point.