Here's a good teardown of an Apple charger which shows where the cost is in the design.
http://www.righto.com/2015/11/macbook-charger-teardown-surpr...
What I don't get is how come the cable part is such lousy quality compared to the sophistication in the PSU part.