In order to cultivate relationships with them! Because pets are more than just pets, many families treat them as their own children. Then how can your child not have a name?
Moreover, pets are also alive and have feelings! If you give it a name, it will treat you as its owner.