Why is the PC power supply enclosed in a metal container?

For safety, to reduce electrical interference and to aid efficient cooling.