I don't think it's a glitch, I believe it's the first in-game multibattle in the whole series and was most likely a developer oversight, heck it is possible for Steven's Metang to level up.
However this occurence if I recall doesn't happen with the games that came afterwards, an example was the battle against Lance and Clair in the Dragon's Den with your rival.