You have a point indeed. You don't pay that much money to fail. That puts countries with free university in another perspective
Half the class would fail, and because of the difficulty, chances are, If you cheated, it was also wrong.
If the teacher caught you cheating, it was a big fat zero right away, and there would be a board of teachers to protect the decision.
And the University is free,even to re-enroll, you only need to pass the entrance exam, which was super easy for any course except for the doctor, law, or engineering. (CS is super easy to enter because they have more spots than students interested in it)
So I don't know; people will cheat rather than put in the hard work and learn.
Most people did it for getting a job.