Neither of those are cheating. Lag happens and there are some steps that you can do to minimize the lag on your end. The following is about disconnects but if you are on a computer, many of the suggestions can help with lag. I would also disable Flash for the site.
https://support.chess.com/customer/en/portal/articles/1444918-my-internet-connection-is-fine---why-am-i-getting-disconnects-
Draws by insufficient material are a real thing too in OTB chess. The implementation here is different than FIDE rules and is a slight modification of USCF rules. Details on that can be found on the last line of the following.
https://support.chess.com/customer/en/portal/articles/1444798-how-do-i-claim-a-draw-
What's going on here? Sometimes I loose because of lag and sometimes I get a draw because of insufficient material. There are obviously ways to not loose a lost game for some.