Iran has been supplying Shahed drones to the Russian military since the start of the conflict. Ukraine told them to stop supplying Russia with the very weapons that enable Russia to strike their cities.
Ukraine didn't go out of their way to start attacking random ships or murder Iranian citizens, or even attack their infrastructure. They sank a ship carrying weapons that Russia was intended to use to hurt them. That's pretty justifiable.
