AC-DC converters have been around for more than a century. They're about as small as they can get for any given power level. Phone chargers are smaller because they only pull 10 watts. Computers use 5 to 10 times that, so the bricks are 4-8 times bigger (scale advantage).