Glyphosate is used prior to harvesting oats to desiccate the plants to make them more uniform for harvesting as they ripen at different times, desiccating the plants makes threshing the grain easier, as the greener plants will dry out from desiccation.
https://en.wikipedia.org/wiki/Crop_desiccation