This doesn't just apply to software development. There are a lot of garbage jobs, dead end positions, where the people are effectively not doing anything. That is a weight on our economy but we can't just cut them out. What would those people do if they didn't have to waste so much of their time to live? Sure there are going to be people that go all in on becoming puddles on the couch, but I'd argue more people have passions they would actually have the energy to pursue.
People could spend more time with their families without being stressed out and burned out by everything else in the world. I'd argue that would most likely lead to healthier childhoods for kids, likely with better supplemental education as well leading to a smarter society in the long run.
People get tired of partying, and the people that don't make good examples for the next generation of what not to do. You can see that in our current society as the younger generation is drinking significantly less and doing fewer drugs to the point major alcohol manufacturers are concerned about their bottom lines.
There will always be degenerates, but people want the fulfillment that comes with actually doing things like you said. They will find that one way or another.