Take image generation trained on a bunch of copyrighted photographs and artwork. What is the intent behind creating such a tool?
Yes, there is a stage where the software developer is building the software to do this purely operating on a "this is a cool hack" kind of mentality, but the point at which you make it available to other people, especially for payment, is when the liability becomes real.
Having worked on open source software for most of my life, I have always had to be aware of the issues surrounding copyright. That other software developers will write software and use copyright to proect it while ignoring the copyrights of others is deeply concerning. Copyright of software is no more or less important than copyrights applied to images and artwork.
Engineers are liable for their mistakes. At some point the same mechanisms may well need to be applied to software.
Building FTTP networks is not expensive. It's the bullshit surrounding obtaining permission to install the fibre that is expensive.
That said, all software developers have a choice as to what they work on by the employer and teams that they sign up with. Just because you're employed to do something does not mean that you're obligated to go ahead with breaking the law.
Real engineers are required to take ethics courses in university, and they cannot willfully ignore actions that are unethical without risking the loss of their license. I think that software developers need ethical training more than ever given the direction of the industry.