Does the professor have anything in the syllabus about if the grade is teetering on the edge of an A-/B+, they have discretion over which way the grade goes? It could have come down to attendance or something small like that. It might be worth shooting a quick e-mail or visiting them in their office to discuss it so your GPA can correctly reflect your effort.