Time Out Against My Will
Yeah, wifi is a prime contender for why you might have had a temporary disconnect and lost the game, but there are others. Hopefully these articles will help....
https://support.chess.com/customer/en/portal/articles/1444849-why-did-the-clock-times-suddenly-change-the-clocks-seem-broken-
and
If you need help, please contact our Help and Support team.