They do have the advantage of degrading fairly gracefully from in-person examination to remote examination.
They're also tremendously expensive compared to a test given en masse.
[1] Oral exams in a school setting would feel much fairer to people than programming interviews do, mainly because you know what to expect on an exam in a class you just took.