If they don't get punished for it, why not?

They should absolutely get punished for it. An AI you train shouldn’t be able to commit crimes.