Why do you think humans need pets?
Humans need pets because they can provide companionship. Owning a pet means the owner must have a sense of responsibility. They need to take care of their pets every day. This has a benefit for mental health,  as the owner must take some time off from other focuses, such as work.  Pets also provide emotional support.  They can help owner calm down when they are feeling down.