The same could be said about a lot of things, like being able to write a functional solution to a leet code puzzle on a black board in front of an audience.
IMHO, an effective interview process should attempt to mimic the position for which a person is applying. Making a candidate jump through hoops is a bit disrespectful.