Power supply CE compliancy requirements
In the event of a failure with a Class I your metal enclosure could potentially be dangerous to touch. So you have to ground it. The class I requires to be connected to a properly grounded outlet.

The class II doesn't need the grounded outlet and do not require your enclosure to be grounded.