They also have a very strong sense of right and wrong that has little relationship to anything they are taught
Which Angela Cannings and Sally Clarke will confirm.
Allowing prisoners to extract retibution on other prisoners, whatever they have done, is wrong. Anyone believing otherwise needs moral guidance. Prison staff owe a duty of care to their charges, clearly those involved in these incidents have failed in that duty.