Why in general can also be an emotionally abusive complaint, for example saying “why did you do that” is often not a question about someone’s genuine reasons but a passive aggressive expression of dissatisfaction.
EDIT: I think around the ages of 6-8 I would more often than not respond with “why do you think?” And later it became a game we would play on car rides where the kids are allowed to ask why until I either couldn’t come up with a reason or they repeated themselves. But reflexive “why” is bullshit.
That comment was uncalled for.
Kids do all kinds of annoying things, like ask the same question over and over again. It's how they learn.