It's not absolutely necessary to connect your PSU to a UPS, as the power supply comes with many protection mechanisms in case of power loss. However, if you are doing important work on your computer, having a UPS will ensure you don't lose out on the data. PC shutdowns due to power cuts may also suffer from storage corruption. So, most people should invest in a UPS to avoid losing data.