Judging the past by the standards of the present is called presentism.
Presentism is the anachronistic introduction of present-day ideas, values, or perspectives into interpretations or evaluations of historical events or figures. It’s often criticized by historians because it can lead to unfair or inaccurate assessments of people or societies that operated under very different cultural, moral, or social norms.
In short:
Presentism = applying today’s values to judge the past.