he clicked resign as his time was up. Chess.com must count the resignment more important then the lose on time.
If you need help, please contact our Help and Support team.