Reading or writing focus
A sound can act as a trigger for recollection. Poems often link the present scene with a remembered home or person.
Why mention both rain and memory when explaining the poem's atmosphere?
The present sound creates the setting, but its effect on the speaker comes from the memories it calls up. Both are needed to explain the shift in feeling.