Traditional Buddhist morality developed in feudal theocratic cultures. Mostly, it is typical for such societies: similar to what you’d find in Medieval Europe or the nastier parts of the contemporary Islamic world. It is crude, arbitrary, patriarchal, and often cruel.
In Europe, Enlightenment rationalism enabled smart people to say “wait, that’s nasty and stupid.” Christian morality gradually became less barbarous, and evolved into secular ethics.
Buddhist modernizers replaced traditional morality with Victorian Christian morality in the late 1800s, and with leftish secular morality in the the 1980s. (The two pages after this one discuss that.) The result is that modern “Buddhist ethics” has no similarity to traditional Buddhist morality, much of which would horrify Western Buddhists.