Dogs and other animals have been helping people with psychical disabilities and providing emotional and mental support for centuries with the first therapeutic use in the ninth century.
Nowadays, assistance dogs are trained to perform the task to mitigate a range of physical, psychiatric, and intellectual disabilities (owners). You can learn more here:
https://myserviceanimal.org/products/psychiatric-service-dog-id/
Generally, they treat conditions such as schizophrenia, depression, anxiety, or Bipolar disorder.