I'd like to point out that children do, in fact, get confused in this way.
When my sister's child (who now uses they/them pronouns) was quite young (maybe three years old? I'm not certain), when something upset them, they would say "oh no wha happen?" because they knew that when their parents responded with concern after they scraped a knee or something, they would always respond with "Oh no! What happened?" So even though the new situation didn't rise to the level of provoking crying or whatever, because they wanted that same level of attention and concern, they just directly asked for that response. It was pretty cute.
Similarly, when they wanted something to happen, they would ask it as a question: "want to make those guys talk?" (which meant "please make believe with me and provide voices for some of these stuffed animals"). Or "want to just bring the bowl down?" (which meant "I'm not sure which candy I would like! please bring the candy dish down so I can pick them by looking at them [and maybe take more than one]"). So they were definitely imitating things their parents said before understanding the full grammar of the situations involved.