Have you read the book, A Dog's Purpose? It's a story about a dog who finds meaning in his own existence through the lives of the humans he teaches to laugh and love. It's a fictional story, but I believe dogs really do come to this planet with a purpose.