> An interview isn't an exam
That's not everyone's experience. Some interviewers do look for correctness, and an interview can be far more stressful than an exam, especially for people who are desperate for employment or just introverted.
The point is that whatever the whiteboard tests, it's definitely not someone's ability to sit on a computer and write good code all day.