>>49112640In the games she is a teenager (14-17), in the manga she is 12yo, and in the anime she adapted to 10yo, I imagine they did this so that their interaction with Ash was equal, unlike Brock who takes the role mentor.
In fact a lot of characters were adapted in this context, for example in early Alola anime it was planned to do the island challenge in a similar way to the games and respect the ages of the characters, but due to the low rating of XYZ everything was rethought and It was decided to create a slice of life, so the characters were adapted to the same age as Ash so that the feeling of recreating a classroom was more real (that's right, Kiawe and Sophocles are the same age as Ash in the anime)