* Dear writer, can you please show me some writing samples?
* Dear graphic designer, can you please show me your portfolio?
* Dear welder, can you please weld these test coupons?
* Dear actor, can you please audition for the role?
There are plenty of professions where a demonstration of relevant work ability is a normal part of the hiring process.
The problem with many "coding challenges" is that they take a long time to do - basically, are unpaid paid work. Writing samples and artist portfolios are compiled from work the candidate has already done; the closest we have in software is "looking at someone's GitHub" which has its own set of problems. Welding tests and actor's auditions are distinct because they don't take that much of the candidate's time, and quickly demonstrate if they are suitable for the role or not.