It mimics the cries of other Pokémon to trick them into thinking it's one of them. This way they won't attack it.