Why is an XML schema important?

Because XML Schema defines the rules of the XML document. It determines what can go in the XML document and in what order they appear.