why was this game a draw?
"Draw by repetition" does not mean the same moves are being played repeatedly. It means the position was exactly the same on three different moves (including en passant and castling rights, or lack thereof; even grandmasters have gotten this wrong before).
As you can see, the positions after moves 20, 22 and 24 are all identical. So, the game was drawn.
The repetition also does not have to be consecutive for the draw to occur. It would also happen if the same exact position was reached on moves 28, 41 and 59 of a game, for example.
[Site "Chess.com iPhone"]
[Date "2025.10.12"]
[Round "?"]
[White "Derivatix"]
[Black "ABOAOSS"]
[Result "1/2-1/2"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
[WhiteElo "285"]
[BlackElo "304"]
1. e4 e5 2. Nc3 d6 3. Qf3 c5 4. Bc4 f5 5. exf5 Nh6 6. Bd5 Bxf5 7. Bxb7 Nd7 8. Bxa8 Nb6 9. Bc6+ Ke7 10. Nd5+ Nxd5 11. Bxd5 Ke8 12. Qh5+ g6 13. Qf3 e4 14. Qe3 Ng4 15. Qf4 Qe7 16. h3 Ne5 17. Qe3 Nd7 18. Qa3 Bg7 19. Qxa7 Nf6 20. Qa8+ Kd7 21. Qb7+ Ke8 22. Qa8+ Kd7 23. Bc6+ Ke6 24. Bd5+ Kd7 {1/2-1/2}