Cruel and unusual punishment, public shaming, steeling oneself against the suffering of another, mocking of the obsolete, the (feigned) pretense that you yourself could not be the one locked up next time, etc etc.
One must take that in context. Despite the engines possesing powers of reasoning and critical thinking, it's important to recognise that those aren't as advanced as a human. It is likely that they also don't feel emotions like shame as strongly. The engines appear to have the intellectual and emotional capacity of an 8 year old human.