ps: school should make kids build more stuff, you get real use case for a lot of mathematical thinking out of cute stuff hands on.
Source: my brother nailed his hand to something in middle school. He's got a Ph.D now, for the record.
Building many structures (or any given sub-specialty, e.g. plumbing) on a predetermined schedule and budget and making money doing it without charging so much money that you get undercut out of business is what requires skill.
For N=1 you rarely have to be a pro to do it right.
The labor itself might be low skill, but the experience required to do the job well and to create a lasting structure takes an enormous amount of time. "should I use ceder, spruce, pine or Aztek for the exterior door casings? Should my subsill be 7 degrees or 14? Should I use felt paper or tyvek for my weather barrier, which type of tape should I use for each type?"
And this is why companies hire a hundred fresh grads for every gray hair. 99x/100 they don't need super high quality work output.
In all trades there's a hesitation to look at something and say "screw it, it doesn't really matter, just do what's cheap" unless you're being told to and software isn't immune from that (in software "told do" seems to come mostly in the form of time pressure whereas in the trades it's what the number job is paying). Sure it's nice to do "good" high quality work but a lot of the time it really isn't necessary or it's strictly wrong because whatever it is you're building needs to be built to a price point. It's only when you push things to the limit do all the little marginal details (the stuff the experienced pros get right) start mattering. That tends to accidentally happen more (at least in my estimation) in software than the trades because labor is so expensive and code is so easily portable.
Also, janky setups and quick-n-dirty fixes abound in all trades. You just only see them in trades you know about.
If timeline isn't the most critical factor a homeowner can do an excellent job. Often even better than the professionals because you will be willing to spend extra time and attention to get everything perfect.
And then get the wrong stuff, which the contractor will make do anyway if there's even the remote possibly it will work. and so on. After a while and some $$$ wasted you will get a feel for what's reasonable and what's bogus.
I became a homeowner as a never-interested DIY with EE/CS degrees. We had an unfinished basement that we paid the builder to finish only the electrical, plumbing, and framing. I'd always heard drywall'ing was easy so I left that for me to do.
At the time I knew nothing about lighting, fixtures, eletrical work, etc. Ended up agreeing to J-boxes for basement lights rather than cans, and a few other money-saving things (for the electrician).
Before doing the drywall myself, I ended up rerunning all the basement lights, running tons of outlets, installed an electrical subpanel in my garage, new plumbing lines, etc. All inspected and approved on my own permits.
I maybe watched ~200 hours on youtube (easy to do at 2x speed) and read a lot of electrical and plumbing code. But when I was done it was "done right" and not done to "save money".
I ended up saving a ton of money on the electrical and plumbing, easily in the thousands, and only saved $700 on the drywall labor. Moral of the story, don't hang your own drywall by yourself. Pay for it if you can't get a couple friends to help.
The latter can really kill a project if you can't get it right consistently, preferably first time.
That's where the skill comes in - not just the physical labour, but the experience needed to make allowances for material tolerances and other possible gotchas.
Professionals (should) have that knack, amateurs rarely will.
Generally all contractors say "the next guys will take care of that". For example, when framing you don't really care if the studs are really straight or if the walls are square. The "next guy" will take care of that.
True enough, when I was drywalling I had the builder come back to take care of some bowed studs that should never have been used.
I've also volunteered at Habitat for Humanity and can confirm that very little "accurate measuring and cutting" was occurring. They'd quickly measure some things, shout out numbers, and then use a circular saw to rough cut it out. But that was it - they didn't refine it after that and went about their merry way.
I have to believe that the accuracy of a foundation is more important but I think it's a fool's dream. They get "close" and they're checked out before the "next guy" has to fix it.
Unless a 3d printer or CNC machine is responsible for the accuracy you better count me out.
The finish work is the final last guy. The guy that did our trim would randomly yell out swear words every 20 minutes. His life is hard. And he was expensive.
I do have a guest bedroom in my house where I once had some time during a holiday shutdown when my job situation was a bit perilous. I had some crumbling plaster so I put some drywall up. It's... functional.
Painting is one thing I do myself. I do it enough I got reasonably good at it and--for touchup--I can reasonably take shortcuts that someone I was paying couldn't.
I think some people fail to understand how hard it is to be a good contractor. Just like software engineering it requires a lot of education and a lot of experience.
You won't get it right your first few tries no matter how smart you are. Just like no software developer ever got things right when they were first learning to code.