If a company owns or develops a computer program, including AI, and that AI commits a crime, the company that built it or ran it has to be held accountable for the crime.
If an AI takes the job of a human, then it needs to pay income taxes and Social Security tax the same as a human would have.