This kind of punishment first mentality can be unlearned or acculturate against, but it's probably a primate thing, not a white supremacy thing.
The earliest written laws were already largely punitive and Hammurabi predates white supremacy. Aboriginal Australian legal codes involved a lot of retributive not restorative practices too - spearing in the leg was a common legal recourse. And those codes probably predate the existence of whiteness by tens of thousands of years.