This is hindsight bias. You can compare this to racism: back in the 18th and 19th centuries, racist and antisemitic people were in the overwhelming majority, and this only changed recently.
And yet, applying 21st century moral values to the 18th century is completely meaningless, as every historian who studied these time periods will tell you.