If you're capable of university level mathematics then you're probably not the audience that school mathematics classes are most concerned about. It's unfortunate, but schools are trying to raise their average grades and your grades were likely to be good regardless.
Surely you had peers at school that found mathematics to be challenging, or even struggled?
Surely you had peers at school that found mathematics to be challenging, or even struggled?