This happened to me -- or, more aptly, the professor warned that he valued regular class participation. I got in the game when called on and once or twice apart from that, wrote the best exam, and got an A-. I think he curved the exams to A- and only upped those who participated a ton, but still.