In an approved transformer/plug pack/adapter, the separate windings of the transformer provide electrical isolation, the plastic case and it's design create physical protection, the low voltage output is obvious (in conjunction with the physical & electrical isolation)
Proper grounding may also be needed if the reference or earth potential is required in your project.