You can change a pet's name by following these steps:
1) go to the Character Settings window;
2) navigate to the Pet Room;
3) tap the Edit button next to the pet's name.