When a child does something upsetting, the fastest question is usually "Why did you do that?" — asked in the moment, while everyone is still upset. It rarely gets a useful answer. A child who is overwhelmed usually cannot explain a behavior on demand, and the question can sound like an accusation even when it isn't meant as one. Curiosity, once everyone is settled, gives you better information to work with. Ask what happened before. Try: "What was happening right before that?