Licensed engineers accept responsibility for those structures/machines/etc when they physically harm or kill others. Like lawyers or doctors being sued for malpractice.
A typical person does not understand scientific principles and cannot validate whether a bridge is safe before using it. An engineer that approves a bridge can be held liable when that bridge fails, even if they had orders from their boss or company.
If you're not prepared to accept personal liability when your code kills someone or causes a disaster, you shouldn't try to be an engineer.
I live in a country (Canada) where software engineering is legally considered engineering and that's what officially distinguishes a "software engineer" from a "software developer". In practice, I rarely see the rule followed.