Why are elements and compounds considered to be pure substances?

Flexi Says:
A pure substance is a form of matter that has a constant composition and constant properties throughout the sample. Elements and compounds are both examples of pure substances. The element gold is a pure metal, while methanol is a chemical compound. Both are pure substances.