What is wrong with your game?

I was playing Lucio ball comp but then i lagged i though oh that’s a shame then i lagged out then again when i rejoined then it said connecting to game server error then i restart overwatch and it says repeatedly leaving games will result in a penalty but then i rejoin the final time and in the middle of the game it says your endorsement level has been reduced from 3 to 2 why cant your game realise it lagged out or literally stooped me from playing?

Edit:I was playing comp with my friends get 1000 ping btw when i play quick play i have fine ping then i get dc’d and get a xp penalty and then it just crashed f my life,It gave me a loss even though the comp ended in a draw thx overwatch penalty’s what was given to me for a reason out of my control,