Poorly trained. The two year old was most likely not supervised and was taunting or terrorizing the dogs
Did you forget the sarc/ tag?
There is an old saying that nothing is more vicious than unsupervised children.
We once rescued a German Shepherd who had been tormented by having firecrackers tied to its tail and lit.
Kid doing it was five years old!
The broad brush so common here is one reason I have taken more than one self imposed time out.