It is called “projection”. Accusing your opponent of doing what you are actually doing.
Now it is common in left-wing politics as a means of establishing "moral relativism".