I wanna continue dialogue with ant because he's making good points and has come across a design conundrum I have also noticed and think is worth exploring about EXP and Levels in Pokemon. Because yeah, EXP and the Level system in Pokemon are becoming increasingly vestigial systems to the overall gameplay loop, and I think it will inform the way future games are designed.
The core thing Experience Point systems do in RPGs is reward time investments put into engaging with the game's systems that are independent of a player's tangible game knowledge. This was a mechanic designed to offset the value of knowledge from sources outside the game itself. Maybe you have a friend who played the game and knows where all the good loot in the dungeons are, maybe you have meta knowledge about the medium you are playing or the limitations of the hardware you are playing on, or maybe you are just blatantly utilizing a source of factual data on the game. (Nowadays this would be a Wiki, before it would probably be a strategy guide, at the time the mechanic was created it might even be people just reading the code!) This outside information advantage often ends up snowballing and rapidly sanding down the edges off of a game. If a player makes a correct choice at every junction, even in situations designed to be ambiguous to blind players, it can be hard to give those players the same kind of experience as those playing with outside information. Your adventure will end up less interesting, with less hardships and fewer opportunities to have exciting moments. On the other hand, players who truly engage with the Role Playing Game fantasy and do take on the experience blindly can feel punished in situations where their progress is undone due to poor choices. There can be simple mistakes like wasting money on poor gear, a bit more frustrating situations like using a rare item in a situation where it does not matter, or dramatic situations where a player gets 80% to the end of a long portion of a game only to need to start it over from the beginning. Engaging with these failures and retreading ground is a much bigger problem in Role Playing Video Games compared to, say, Tabletop RPGs because Video Games have very defined limits in their flexibility as "Dungeon Masters", so to speak. Chief among the things a Video Game can't do is read the room.
An Experience Point / Level System brings the experiences of players at the extreme ends of this paradigm closer to one another. A player stumbling blindly through a game that struggles and persists is rewarded for that engagement by becoming stronger in battle over time, which makes further battles easier, and ultimately smooths out the friction toward their further progress as they engage with the systems repeatedly. A player with plentiful background knowledge will likely spend much less time engaging in battles and will have less difficulty winning the fights they do take. They will acquire less Experience, gain fewer Levels, and then be put into situations where the advantages of that background knowledge is more crucial to leverage in order to continue progressing through the game.
Where these systems fall apart is when the median amount of design the systems push players towards stop really helping them engage with the game in more interesting ways. A super common form of this in older games was caused by the incentive towards making games take longer to finish. Elements of the industry like prices being much higher, consumers having access to a much smaller number of games, a desire to sell Strategy Guides, a desire to play well with Game Rentals, a gaming public less exposed to vapid skinner box gameplay loops, and even the general increased willingness to engage with the process of slowly learning all the subtleties of a simple system of past players (one might call "increased attention spans") created a situation where developers were more likely to err on the side of making games take too long to beat rather than too short, and in RPGs the easiest adjustment to force players to spend more time on a game in order to complete it is to make it take longer to Level Up to reach benchmarks that allow players to progress, or at least have a reasonable chance at being able to with their available tools. These kinds of numbers tweaks can make or break a game when done haphazardly, and many older games do not hold up under scrutiny today due to their poor juggling of story pacing, gameplay complexity, and level curve for the average player.
Pokemon has always veered to toward the very most permissive end of this scale relative to its contemporaries. There are the very straightforward ways EXP is made infinitely accessible and especially safe and consistent to access thanks to infinite free healing resources, and there is also the relatively rare case with Pokemon that even the most complete failures a player can endure in battle will result in them keeping the EXP they had gained with no need to restore a previous save file. I think most of all, though, the games being so expansive in scope / objectives and having such specific ways to means that they interact well with the variable difficulty function of these Leveling systems. Much of this works because of Pokemon's position as a Lifestyle Game. In other words, players that are expected to spend time in the game working towards various tasks that are only adjacent to the core battle system can incidentally make progress towards the long term goals associated with the battle system in the meantime by doing optional battles for extra EXP, finding items, learning more about various Pokemon that can be applied to battle later, and so on. But most systems in these games can't be completely detached from Levels and Moves and Experience. Even ignoring the up front way that access to areas of the map are restricted by access to Badges during the main story, there's things like Contests requiring Pokemon to get Levels to access strong moves or needing Pokemon with high stats to efficiently catch rare Pokemon once found. On top of this, while these ways to spend time do tend to result in gaining advantages in the Battle System, they don't really create a comprehensive gameplay loop. In a lot of cases, I'm making a suspect assumption on the game's behalf that players will naturally gain EXP on their Pokemon while exploring the overworld by fighting against Trainers or Wild Pokemon, and that's far from a constant truth. Catching Pokemon for EXP Consider that in a game as deeply ingrained with Multiplayer as Pokemon, it's only starting in Generations 8 and 9 with Dynamax and Tera Raid Dens that players were able to engage in a multiplayer gameplay event that could come anywhere close to directly giving the player progress on the main story in terms of Leveling and Experience through EXP Candies and TRs / the Pokemon Materials system. In Generation 9 especially the lack of required Trainer Battles or real Level Design in the open world makes this seem more like it's a part of the intended balance for the game. So while the Lifestyle Game Elements do tend to counterbalance the biggest pitfalls of the Experience System, they do so incompletely. I think it's not for nothing that some of the games I find to have the best design as a Singleplayer RPG (RBY/FRLG, RSE, BW1+2, SuMo... kind of just the Odd Numbered Generations overall?) are the games which have the most lackluster implementation of Lifestyle Game elements and the worst integration of Multiplayer.
With Wind and Waves on the horizon, Champions established as a hosting ground for Competitive play that the main game developers no long have to worry about, I think a really big focus of Generation 10 is going to be finding a way to make for avenues of progression independent from gaining power for battles via Experience and Levels. (I will continue I am out of time and accidentally posted)