The difference amounts to how much time they have to waste. I didn't care about grades 'till grade 12. From 9 to 11 my grades hovered around 65% to 75%. I didn't do any homework, besides the obviously mandatory huge projects/group work. As soon as Grade 12 hit and the universities were watching I studied every night and got mid 90s. Best decision I ever made. I learned VB & SQL during that time, some electronics, so mechanics, worked as a programmer found out I hated it. All vastly more useful than a 92% in grade 9 drama or art.
You probably don't want to hear this, but even straight-A students are bored by some of what they learn. The difference is that the straight-A students have learned to persevere through boredom, while the smart-but-underperforming students often haven't. It's a useful filter, and the people who discriminate against the latter group aren't simply being capricious.
(For the record: I was always one of the latter group. I'm coming at this from the dirty side of the filter.)