Continuity mistake: When Pikachu agrees after Ash says, "Yeah, that's it!" his body is facing towards the rock, but in the next shot, it is not. (00:00:10)
Continuity mistake: When Ash says, "Uh-oh," Pikachu's pose changes between shots. (00:00:45)
Continuity mistake: When Brock asks why May would pass on her match at the Rustboro Gym, the back of her body is in front of a backrest, but in the next shot, it is not. (00:02:09)
Answer: Yes it ran away because Layla hurt its feelings.