Specifically, this is a type of mimicry called Batesian mimicry. This is where a harmless species evolves to resemble a harmful one, benefiting from the predator's avoidance of the dangerous model.
Here are some examples of Batesian mimicry:
* Viceroy butterflies mimic the appearance of Monarch butterflies, which are toxic to predators.
* Hoverflies mimic the appearance of wasps, which can sting.
* Scarlet kingsnakes mimic the appearance of coral snakes, which are venomous.
Let me know if you'd like to know more about mimicry or Batesian mimicry!