There are some edge cases where a player can time out to salvage a draw based on the rules implementation. However, the site doesn't currently utilize the FIDE implementation of mate possible by any series of legal moves on timeout for a win condition, instead opting for something more similar to the US Chess rules and only looks at the material the side with time has.
It's not about getting the rules right, as FIDE and US Chess rules differ as well, but in how to handle it and then coming up with a programmatic way to handle the situation. You play under the rules of the organization hosting the games, in this case, chess.com rules.
Black to draw this position:



Clearly black is in trouble here. White just played the move Bc1 threatening Bb2#.
But not all is lost! There is a way to draw the game here.
Obviously a5 (the only legal move) does not cut it here since it does not stop the mate in one Bb2#.
The key here is good time management.
Black just waits out the remaining 3:40 seconds of his own time and does not move.Actually the best continuation is not to continue!
But don't you dare hit that resign button!
After black "looses on time" chess.com will declare this "Draw by timeout vs insufficient material.
Don't believe me?
After encountering this on the board i brushed up on my Fide Laws of Chess (https://www.fide.com/FIDE/handbook/LawsOfChess.pdf)
Here is the important part from the Article 6: The chess clock:
6.9 Except where one of the Articles: 5.1.a, 5.1.b, 5.2.a, 5.2.b, 5.2.c applies, if a player does
not complete the prescribed number of moves in the allotted time, the game is lost by
the player. However, the game is drawn, if the position is such that the opponent cannotcheckmate the player’s king by any possible series of legal moves.Since there is a way to checkmate black by a possible series of legal moves (a5,Bb2#) this game has to be declared a victory for white.
By extension every other minor piece vs pawn endgame (not just with the right corner pawn) should be declared a victory if the side with the pawn looses on time.
Anyone can easily confirm this by underpomoting the pawn to the correct minor piece and arranging a position similar to the one shown.
I know that this is not very significant, since it does not happen often. I just thought the biggest chess website should get the rules right.
Best regards and good luck winning your games