In this way, the moves that you have difficulties with will be repeated more often and memorized better.
If you make a mistake, the position will be reviewed sooner than positions where you made the right move. If you play the correct move, the game continues, otherwise the position is repeated. Then the computer will select moves from the repertoire and you have to play the correct moves. The learning is then done by playing against the repertoire.
Upload your own opening repertoire as PGN file, import studies from Lichess or use one of the already uploaded openings. On Listudy you can learn opening repertoires using spaced repetition. In this blog post I share techniques for beginners as well as advanced players to learn chess openings. Everyone wants to become an expert in chess openings.