It goes beyond upfront accreditation. Doctors and lawyers get accredited credentials, sure, but more importantly they're also subject to strict regulations around malpractice. You can BS your way through most degree programs, but you can't BS your way through a law or medical practice because sooner or later you'll wind up doing something illegal and be stripped of the right to practice.
In software, it would not be enough just to require a degree. We'd have to also have some auditing entity that ensured the software written in practice conformed with the standards of professional engineering. And as the industry stands today, that applies to 0% of software created in a professional setting, never mind that very few corporations would be cool with auditors poking around in their code, at least without strict NDAs.
Not that I'm arguing that we should go this way. I for one embrace the wild west era of software for as long as it lasts. But if we were to give accreditation any weight, it would have to come accompanied with a standardized method to verify the accreditation is actually meaningful.