What is purpose of sideway transformer in PSU?
It is a common mode choke, and it works to prevent high frequencies conducting back to mains. It is required for switch mode power supplies to pass the required electromagnetic interference tests.