We didn't used to have great jobs for high school-educated folks, we used to have unions. Because lots of people earning 0.05x joining together are the only way to make things fair when woking for a person earning X. Or 10x.
But that only applies to the slob packing a box to send you a fidget spinner thing. Not to you brilliant coders working in Silicon Valley, obvs. Except here's a thing: I worked for at a 8-to-5 for years before going out on my own for the last decade. And now I can't seem to go back, because all the full time gigs I find quote me $US125-150k. And I make about twice that as a contractor. Nothing fancy, I haven't found some wonderful niche, I just ask for my rate and get it and work. And even after accounting for paying both sides of Social Security taxes, I make 2x the top end of whatever StackOverflow survey you want to look at.
I'm not amazing, I'm just a guy who got a decent education that was paid for in large part by my mom's salary as a teacher. Which was a result of her efforts in a union that had to go out on strike some times. Unions aren't perfect. No organization of humans ever will be. But regurgitating "facts" about why unions failed that have been drilled into you by popular media isn't a way to overcome that. It's a way to get screwed. Good luck.