Why is language important?

A document can contain sections written in different languages. Screen readers cannot infer meaning from just text. Identifying distinct languages creates a structure that allows assistive technology to identify and read all languages correctly.
Note that you do not need to set a section language for proper names, technical terms, or foreign words that have become part of common use.