Opponent Inf PP

Im at the elite four and why do one of the opposing pokemon has inf pp for earthquake? Is this to prevent heal stalling?

i dont think so