King may not move into check - period.
Actually, the player delivering checkmate should demonstrate his ability to "capture the king".
(This might happen in the very distant future, but probably not in the near future)
In a tiny minority of games, some players do not realise that their own king or their opponents' king are under attack. And some players do not realise that some checkmate positions (the not-so-obvious ones) are checkmate at all, especially under time pressure.
I have launched accidental checkmates before on this site and I only realised it because the pop-up message showed that I won by checkmate - I should have actually lost on time if the game proceeded because I had not seen the checkmate coming and I would have played another move which would result in me flagging.
https://support.chess.com/article/373-checkmate-with-a-pinned-piece-whats-going-on