I have an idea that the "software engineering" industry is currently, in terms of maturity, where electrical engineering was in the early 1900s. Software is now a core part of the infrastructure of developed nations, but development is still very haphazard.
Electrical engineering benefited from the implementation of standards and quality assurance that come with codes and professional licensing. Software engineering, at least in certain critical applications, would benefit from the same level and kinds of oversight.