Hippity hop

At the beginning of some pet battles (against trainers), my character does this odd little jump. At first, I thought it was due to those battles being on uneven terrain. But that doesn’t seem to be the case as I’ve noticed that it can also happen when the terrain appears flat.

Any ideas as to why this happens? It doesn’t affect gameplay, so it’s not a big deal. I’m just curious.