What does having a pet bring to your life?

I’ve had cats twice before, but had to give them back to their owners when I moved to another city. I’ve been putting off getting another cat because of the responsibilities involved, but I remember feeling less caught up in my own thoughts and compulsions when I had them. And I wonder whether wanting a pet for my own well-being is selfish