I find it hard to believe that the author had trouble with the question. The answer is provided perfectly in the supplied text. If I say that dogs bark when they are cold and then ask a five year old why dogs bark I think I'd be pretty disappointed if they couldn't regurgitate what I just said. Is it so different when written rather than spoken? Can we really be sure that this is a reading comprehension problem as op…
If I say that dogs bark when they're cold and then ask a five year old why dogs bark, I'd expect something like, "when they're cold! and when they're angry! and when Amy [sister of this 5yo] steps on his tail, hahaha". Or whatever. Reality is not bound by what someone written or said few moments ago. If you want to test reading comprehension, you have to control for prior experience in the subject which might be (and probably often is) greater than test author's.