Their brains tell us so
Recognizing the emotional expressions of others is a critically important social skill that is seen in many types of animals. The ability to understand emotions can also occur outside of a single species when social partners are not all contained within one species. This cross-species understanding and communication has been best studied within the biological miracle of the friendship between humans and dogs.
via Whisker Therapy