Once upon a time, in what seems another life long ago, a person of significant skill and position (nothing in the medical or mental health fields) told me of the positive value of whining. I don't remember the details of what he said, but at the time it made sense to me.
At the very least, whatever "whining" may be, it is multidimensional. It may annoy, but that's not all it is or does.
__________________
My dog

mastered the "fetch" command. He would communicate he wanted something, and I would fetch it.