What's the point of interviewing someone if it has nothing to do with the job they're actually about to be hired for? That feels really confused to me.
It's a proxy for IQ + willingness to grind to learn a new skill, and those two attributes are highly cross-functional in an environment where job requirements frequently change.