Don't confuse your readers by mixing up what happens when and why.
When one of my nieces was little, she'd tell me stories about her day. They usually made no sense, and not just because she was seven. She'd always tell me what she did before she told me why she did it.
"I cried on the swings, because it wasn't fair and they yelled at me."
It often took multiple follow-up questions to get the real story that she got scolded for playing in a sandbox she'd been told three times not to play in (the reason why involved a cat mistaking it for a litter box).
Granted, few writers write a novel like a seven year old telling a story, but mixing up the stimulus/response structure happens all the time. Usually it's a small mistake that readers can figure out and move on from, but sometimes it's a big error and leaves them confused.