Only entities with free will can be held morally responsible for actions. Computers do not have free will, therefore can never be morally responsible.
https://scholarship.law.upenn.edu/cgi/viewcontent.cgi?articl...
Computers are programed to do whatever they do, so they have no choice in the matter.
Humans, on the other hand, have an immaterial soul, and thus can make decisions that are not determined by material constructs.