For the general-purpose, a power supply is an equipment that is used to convert AC to DC and most of the circuitry equipment works on the DC current even our phone. That's the reason why we need a power supply.