* People naturally imitate what they see others do. A condemnation can prevent others from imitating the evil act.
* A condemnation calls on others to resist and not facilitate the evil act.
* Condemning someone makes you enemies, in a way that is plain for everyone to see. This positioning can open up for alliance offers from others with similar beliefs.
Making someone an enemy comes with risks and drawbacks of course. You become less able to influence someone if you cut ties, hence why people suggest to try influencing in private first.
(well except ofcourse the corrupt dictator in ukraine, so it naturally falls on deaf ears)