When a page contains content that is not in the same language as the page then the language of that content must be defined in a programmatically determinable way.
This allows both assistive technologies and conventional user agents to convey the text more accurately. For example screen readers can use the pronunciation rules of the language of the text.