It's funny-- except for Tenoke all the responses so far boil down to essentially this.
I'll try again.
Assume an alternate reality where this incredibly important rule doesn't exist. In it, the other player simply takes the king on the next turn from a neophyte who didn't realize they are still in check.
What bad things would happen as a result of the non-existence of the gratuitous rule?
And don't just speculate based on the zero cost of posting on HN. Give me the real reason based on the history of the creation of chess rules and/or the documented behavior of real chess players in history.
This is not merely an alternate reality; this is effectively the reality of blitz chess, where capturing the king is a way of claiming victory by declaring that the opponent made an illegal move when they didn't move out of check. In blitz chess you do not have the right to correct illegal moves after the opponent points them out.
https://www.reddit.com/r/chess/comments/jrvmk7/capture_the_k...
If the penalty for the specific illegal move of not getting oneself out of check is to lose the game, what could the practical significance of the rule possibly be?
The other respondent is claiming that chess would become a game of "gotcha," as if the rule somehow prevents chess players from faking injuries to distract the chess ref and get free moves.
In regular chess, the rule just helps a player avoid one particular kind of blunder. Basically, it was arbitrarily decided that game records should never have king captures in them.
I would agree that makes it a poor excuse for a rule.
An interesting edge case is if the opponent does not notice the illegal move. See FIDE for details.
Chess would be a game of gotcha instead of the game it currently is.
The rule is there to support the preferences of the kind of people who think chess is fun.
In other words, complete horseshit.
You're not. You're asking a stupid question and complaining that other people don't share your views on what makes a game fun.
Think about actual, medieval monarchs in their castles, holding literal absolute power over everyone. If someone were to invent a board game featuring a King, and the King were to be made aware that you moved him into danger and got him captured, he might have your head.