Some Pokemon have had their stats changed throughout the generations. For example, Pidgeot was changed to have 101 speed in Gen 6, instead of 91 which it had in gens 1-5.
Currently the pokedex page simply displays the gen 9 base stats. Unlike move learnsets, there’s no way to view base stats from older gens nor any indication that the stats may be different in some games.
I believe this is a relatively easy thing to implement, simply a note below the Base Stats section mentioning “[Stat] is [number] from Generation [A] to Generation [B]” would solve this.
There’s also Gen 1 having Special instead of SpA/SpD but that’s a whole other can of worms that I imagine might be a bit harder to implement, but that would also be nice.