The sentence that explains why commas are used with nonrestrictive elements is:
Commas set off clauses and nonrestrictive elements from the rest of the sentence.
This is because nonrestrictive elements provide additional information that can be removed without changing the main meaning of the sentence, and commas help to clarify that separation.