I think this kind of approach is the root of (the US's) hustle culture. Instead of receiving a fair score, you get a zero and need to "hustle" and challenge your teacher.
The teacher effectively filtered out the shy boys/girls who are not brave enough to "hustle." Gracefully.
Nah, the professor wasn't American (as is often the case) and she had a tricky situation. She had strong reasons to believe people were cheating and had to sort out who did and who did not in a swift way.
This has nothing to do with American Hustle culture and just with that professor's judgment.
They had to challenge her first. So, yes, challenging her was the only way to get better grade. And you still knew im advance what questions are giing to be.
Cheaters and non cheaters were punished in exactly the same way. Effectively cheating gave you an advantage and being shy gave you disadvantage.
The teacher effectively filtered out the shy boys/girls who are not brave enough to "hustle." Gracefully.