Most people aren't inclined or cannot afford to work on something for extended periods of time without the explicit promise of compensation. There are a lot of dreamers who aspire to the rockstar lifestyle but for most of them guitar hero is about as far as it goes.
My boss is one of these self-loathing software developers that constantly sees it fit to remind me that we're all privileged sissies who get to play on computers and get paid obscenely well for it.
I don't buy that. He may feel that way, but I didn't start off in software development. I worked my way into it before there was ever a coursera or any other "become a developer quick" program. I did this by working a full time job to pay bills, then coming home and spending another 8 hours a day (and entire weekends) learning and honing. It would take 2 years of these 100-hour weeks to get to a point where I could actually begin doing this work at a professional level.
So I don't buy it. I hit a lot of walls and wanted to give up many times. And I've always loved computers! It still takes a special person to do the work we do. It wasn't like that for auto manufacturing.
Sorry to call you out on that, but that is a tiny sacrifice to make compared to the past (which involved sweat, blood, immigration, exploitation to name a few). Even calling it a sacrifice is kind of sacrilege. Plus, you most probably did a lot of social interaction on your IM.
At least ditch-digging and carpentry and whatnot resulted in having some exercise in your body. Sitting in front of a screen (or standing, or whatever) doesn't do much to increase health, improve posture, or maintain eyesight.
I may be projecting a bit here, but most programming jobs (excluding the magical land of milk and honey and catered lunches and in-house gyms that apparently is the norm in SV and NY right now) don't result in you being any healthier or more social.
We are in a profession which is self-selecting for making us physically unattractive and economically replaceable (if we do our jobs correctly, it shouldn't be hard to replace us on a team).
That said, there are still clearly disadvantages to being coders.
This opinion of my mine does not have anything to do with how hard the work of a software developer is but more to do with simple human traits. At a bare minimum to work effectively as a software developer you need to be a good learner, ability to try new things, be able to step out of your boundaries and push yourself, discipline to sit in front of a computer for long stretches of time, and comfortable with change. These traits are in some ways the opposite of an ideal factory worker.
I don't know about you, but I've sacrificed an incalculable amount of positive social interaction sitting in front of these damned screens. My programming skills weren't spontaneously conferred upon me, as a kid I'd spend weeks at time building foolishly impossible-to-complete applications that I'd eventually leave to rot as I hopped onto the next cool programming technique that I finally understood the power of. There's a considerable amount of my time not spent interacting with people I enjoy, even today, because I am so compelled to build programs. Time spent in the pursuit of understanding these gadgets is the sacrifice made and the barrier to entry.
Though, I do believe automation will catch up with developers eventually; there will inevitably come a point where general purpose programming experiences low demand as the explosion of software begins to cover the majority of conceivable business use cases.