In a game of cribbage, on a basic board, you have some holes for scoring and you move your peg up the board as you score.
This can be achieved with a single peg but I have only seen it where each player has 2 pegs. I am aware that there can be more than 2 pegs but I'm referring to the in game scoring (if that makes sense).
Wikipedia states
Two pegs are used in a leapfrog fashion, so that if a player loses track during the count one peg still marks the previous score
There sadly is no citation for this claim and any game with a similar scoring mechanism can lose its place, assuming that "track" as per the quote means concentration and not track around the board.
What is the purpose of the 2 pegs?