I think the thing is, that lightly-armoured skirmishers have a looser formation and can get out of the way easier than tightly-packed legionaries. They're not standing up to the charge or something.

As for animals always obeying when properly trained, we know from real life that when under pressure they may forget their training and go back to their instincts, just like people. They may not always be perfectly trained, either.