Why are pet battles so buggy?

Might need to do it with full 25s? Link the quest maybe? I have never had an issue with per quests.