You're comparing the upper and lower ends of the same field, and I agree that it's clear enough why one is harder than the other. However, doctors and nurses do not simply have two versions of the same job.
Using your example, suppose that every software developer was worse. Then, CRUD apps would be cutting edge R&D and enterprise applications would be, I don't know, Excel spreadsheets. If CRUD apps were cutting edge R&D, programming would be easier, and worse programmers would be able to keep their jobs. The field is easier because the people are worse, the people are worse because the field is easier. The question is, what starts this cycle?
Nursing is a tough job, with demanding hours, but I could get a nursing degree in 2 years, whereas I probably couldn't even get into med school, much less get through 4 years + residency. (I'm a biomedical Engineer, have most of the background).
Also, your argument doesn't hold up. If every software developer was worse, it would be as difficult to get into because everyone is worse, not just current devs.
Just like a software engineer that creates simple internal CRUD applications for an Enterprise will have lower requirements than someone who works in R&D at a cutting edge field. One is easier than the other while both still give value and both are still important.
One thing to note is that when it comes to for example doctors there are more young female doctors than young male doctors in Sweden these days so soon we will probably see a field were that is true for all age groups.