I wonder if that was part of the reason that some programming languages use constructs like "if / fi" "do / od" etc.
(Note: After writing the above, I checked with ChatGPT, it claims that the main motivation was to make it unambiguous which which "opening word" a "closing word" belonged to.)