D. It helps readers understand how the bed feels.
The personification of the bed as "whining" conveys its reluctance to let go of the speaker, mirroring the speaker's own feelings of reluctance, thus enhancing the emotional connection between the character and the bed.