What a touching story, Jahnavi, and one that certainly indicates that animals are capable of emotions. I've seen the same evidence in my pets. There is no doubt they grieve the loss of other pets and of the humans in their lives.
I believe plants have energy, chi, that emanates from them. Trees, in particular, have strong chi.
We humans are not as smart as we think we are.