Like most languages, XQuery has arithmetic operators and comparison operators, and because sequences of nodes are a fundamental datatype in XQuery, it is not surprising that XQuery also has node sequence operators.
The collection() and doc() functions are standard XQuery/XPath functions; whereas, xmldb:xcollection() and xmldb:document() are eXist-db-specific extensions.