We have to obtain the breed by calculating it, based on stats - we can't just ask the game what breed the pet is, and then display it (for some reason). Unfortunately, with some level 1 pets, it's impossible to determine what the correct breed is, due to numbers being rounded off. In that case, we just display the ??? that you see.
To get the correct breed, you can level the pet once or twice, and it should then have enough data to calculate correctly. You can also use a website like petsear.ch, which can obtain the correct breed without calculations.