In short
OPC UA is an industrial communication standard that lets machines, PLCs and software from different vendors exchange data securely and in a standard way.
OPC UA is platform-independent and carries data not just as values but with units and meaning (information model). Encryption and authentication are part of the standard.
MES, maintenance and data platforms mostly read shop-floor data from OPC UA servers.