It's because coding interview questions aren't so much assessing job skills as much as they are thinly veiled IQ tests.
I think if it was socially acceptable they'd just do the latter.
A lot of companies have IQ like tests, in particular big consulting companies like McKinsey and so on.
Plenty of companies administer IQ tests. The reason everyone doesn't is that it doesn't work well.