I don't know if you have thought more deeply about the following.
You do it for your career, fame and money. You invent something that can go two places:
1. for civil use
2. for military use
The resources are provided either by the state or the private sector. The state is mainly interested in military use, while the private sector is interested in civilian, or more precisely business use. Whoever provides the resources expects to be rewarded with the results of your work. That is the system that has evolved for this.
A question arises, which everyone can interpret for themselves by the following example. Who is responsible, and what responsibility, for, say, a cosmetics company researcher who invents tiny plastic balls to remove the top dead layer of skin that then finds its way into the oceans? Whose responsibility is it when they fill single-use PET bottles with soft drinks without taking care of the fate of the empty bottles? Because the reason is profit, and plastic waste becomes a public issue. Do you know who will use the quantum computer and for what? Profit is always private, negative consequences are public. That's the system.
Humanity needs to evolve, driven by researchers, who are never held responsible for anything. But what if there is a judgment after death, where every little thing counts? Is he who judges just? Does it take into account the peculiarities of civilisation, that there is nothing to be done, that is the system? But what happens after death is not proven. Because there, to say that you did everything for your career, fame and money is a straight road to hell.
You're very lucky that I've come into this world with the kind of assertiveness that will save your asses from this. That was the good news. The bad news is that I have an objective adjudication system of my own devising that is capable of complex determination of responsibility. That is, you don't get away with it, only responsibility depends on the severity of the involvement. Everyone is judged pro and con according to their weight, actions and role.