I think it turns out that the Purrloin was actually a male at the end (that's what i get by Meowth & Oshawott reaction at the end).