It is because you didn't have enough to checkmate. It is under chess rules that if the opponent or yourself ran out of time and not enough for checkmate it's automatically a draw
Why is this game a draw?
If you need help, please contact our Help and Support team.

He ran out of time. He still had material. Why didnt I win?