That is one of many things that can happen when a dog is not properly controlled.
Do not put kids in charge of the dog.
A dog owner, especially of a large dog, must protect everyone from their dog, and they must also protect their dog from everyone, including themselves, because dogs do what dogs do.
Clearly you’re not privy to the pit bull threads at FR.
The DOG is to blame. Period.
/s