I (black) was losing and ready to resign soon. As far as I can tell, there should be no stalemate or 50 move rule applicable. I had offered a draw earlier, but it was declined. Can the opponent accept the draw later after first declining? That wouldn't be fair.
In a chess there's a 3-fold repetition rule, if the same position appears 3 times, a player can call a draw. Your opponent allowed a 3-fold repetition, hence, the game was drawn.
3k4/8/p1PK2p1/1p4P1/1P6/P7/8/8 w - - 11 57
Edit: clarifying in light of comments:
Note that the draw does not happen until claimed by a player, and since you didn't claim it, your opponent must have. Why would they claim a draw in a winning position where they had more time on their clock? On lichess.org, you can control the "claim draw on threefold repetition automatically" setting. Yours is set to "when time remaining <30 seconds", but the opponent's must have been set to "Always". Players who normally play under faster time controls sometimes use the "Always" setting to ensure predictable draws under time pressure. You got lucky in this situation because your opponent didn't recognize the 3-fold repetition, and their winning chances were undone by their settings.