I don't understand this mentality at all. If I'm hiring you to do X, I want some sort of confirmation that you can actually perform X. What's the alternative? Hiring the first person who applies?
The vital difference is that doctors have doctorates. Becoming a doctor is an incredibly rigorous process and you can be confident that anyone who is a doctor is competent. You don't need a demonstration of their skills.
Any shmuck can spend a week on leetcode and call themselves a programmer. There needs to be a way to sort out that type of applicant in a field where so many are 'self taught'