“Nothing in software or hardware gets put there by accident”
Having developed — and of course used — software for many decades, I can assure you that there are many things in software (and hardware) that has been shipped, and is in use, that are there by accident. They’re called bugs.
This does not mean that bad things are *never* deliberate...
‘Bugs’ I understand. Things that don’t work, or that have consequences that are not fully explored, or that are at odds with other parts of the code.
AI should, and probably will, alleviate these types of inconsistencies. Make programmers lives easier or just eliminate the need for them at all.
OTOH, I was talking about secret code, backdoors, eavesdropping and transmitting code that is not intended for every user to have access and allow bad people to attach themselves to your computer or financial records.