An often less known basic rule of Catan is that you can only win on your own turn.
If this is the case, either a scenario is played that requires more than 10 VP or, in the case of a multiplayer game, the required VP has been changed by the game's creator.