AI is just a tool with no agency. Someone needs to wield it. That person is responsible for it's output. Just like if a carpenter hit someone in the head with a hammer, even if they claimed they didn't know the hammer could damage a head since they've only ever hit nails with it.