Yes, correct. You and I both left out nearly all job types. You’re making sweeping generic claims about all jobs without any specific evidence. And I still don’t really see a clear problem or any suggestion for an alternative. The point you didn’t address here is that programmers are paid more than accountants, museum curators, and much more than burger-flippers. If you want a high paying job coding, and it typically requires doing just a tiny bit of live coding, why not spend time practicing instead of complaining? Another thing you haven’t addressed is that there are a lot of stories of programmers faking their way through job interviews. I don’t know how often it actually happens, but kids trying to game the system to get high paying jobs seems to be an actual problem, whereas statistically nobody is trying to fake their way into a museum curating job.
Do you consider certifications and qualifications to be a pre-hiring demonstration of skills? Many many jobs require these. Programming jobs sometimes require them, and those jobs are less likely to ask for on-the-spot programming during interviews. Not all programming jobs ask for live-coding, you shouldn’t assume they all do. Do you consider an interview to be a demonstration of skill? All the jobs you listed require interviews where you have to talk in technical detail about what you’ve done.
Speaking of outliers, there are almost no museum curating jobs, and they have to typically do a master’s degree and then spend years doing intern style work, perhaps similar to a doctor’s residency. Then after all that, the median salary is less than half of the median programmer’s salary. Accountants and Baskin Robbins managers also make less than programmers on average, and the sum total of jobs available in all three jobs you just listed is relatively small compared to doctors and artists - in the US (for example) there are ~1.5M accountants, less than 10k curators, and just over 2k Baskin Robbins, while artist jobs alone are double that of accountants and including doctors is around ~4M jobs. The number of programming jobs in the US is around 4.5M. Between artists and programmers, the number of jobs that requires on-the-spot skills demonstrations is definitely much larger than all jobs you just listed so far, even when I give you the benefit of the doubt and include all fast food managers in the US and not just Baskin Robbins.
Above you illustrated some reasons why asking for a skill demonstration is a good idea, so I’m not sure why it matters whether or not it’s common for other job types. Maybe programming interviews have better outcomes than accounting interviews (fewer firings or bad employees per capita), in addition to higher average pay?