Depending on the person, they may have spent years or possibly a decade or more in the US before trying to get an AOS. As such, the USCIS is probably a better adjudicator than a consulate.
If someone came in as a child then it's true, and thus there is a discretion. Adults have history in their home country which does not disappear in 10 years or any period of time.